self.webDetailsView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height + 150)];
self.webDetailsView.delegate = self;
self.webDetailsView.scrollView.bounces = NO;
[self.view addSubview:_webDetailsView];
[_webDetailsView release];
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
//判断是否是单击
if (navigationType == UIWebViewNavigationTypeLinkClicked)
{
[self changeFavorite];
}
return YES;
}