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;
}
如果用户触摸某个链接,则该链接将通过野生动物园打开。 有什么问题? 如果执行此操作,然后返回到应用程序,则您不在信息视图中,而是在主视图中……并且(这是问题所在)如果您触摸信息按钮,则什么也没有发生!您无法再次打开信息视图! 为什么? 谢谢!     
已邀请:
尝试取出
[ab release]
。那样有用吗?     
而不是将信息视图控制器显示为模式,而是将其推入导航控制器的堆栈中,怎么样?应该会产生类似的效果,但是当您返回到应用程序时,您仍然应该在信息屏幕上。像这样代替“ 3”呼叫:
[self.navigationController pushViewController: ab animated: YES];
    

要回复问题请先登录注册