基本上,我想要的是一个[self.navigationController popViewControllerAnimated:YES];
在按下某个按钮并且您在 Google 页面上时执行此功能的功能。但即使我不在 Google 页面上,该功能也会发生。有什么我可能会丢失的吗?
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
{
if(wasClicked)
{
if([[request.URL absoluteString] rangeOfString:@"google"].location!=NSNotFound)
{
[self.navigationController popViewControllerAnimated:YES];
}
}
return YES;
}