presentModalViewController和uiwebview出现问题。
|
我在\“ info \”视图中使用presentModalViewController。
我在NavigationController的顶部添加了一个信息按钮ah,按下该按钮时,我调用此方法
about *ab = [[about alloc] initWithNibName:@\"about\" bundle:[NSBundle mainBundle]];
ab.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: ab animated: YES];
[ab release];
在我的信息页面中,有一个UIWebView,其中包含一些链接。
使用此方法(并将uiwebview委托设置为self)
-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType {
if (inType == UIWebViewNavigationTypeLinkClicked) {
[[UIApplication sharedApplication] openURL:[inRequest URL]];
return NO;
}
return YES;
}
如果用户触摸某个链接,则该链接将通过野生动物园打开。
有什么问题?
如果执行此操作,然后返回到应用程序,则您不在信息视图中,而是在主视图中……并且(这是问题所在)如果您触摸信息按钮,则什么也没有发生!您无法再次打开信息视图!
为什么?
谢谢!
没有找到相关结果
已邀请:
2 个回复
了驳
。那样有用吗?
味芯憨