这是我的问题。
- 我有一个 tabBar 应用程序。
- 在第一个选项卡中,我有一张桌子。
- 在点击表格时,它会显示一个模式视图。
- 要从模态视图返回到第一个视图,我使用
[self presentModalViewController:nw animated:YES];
问题是,如果我在打开模态视图时单击选项卡栏,它会打开第二个视图,但第一个视图的表格不起作用,因为模态视图仍处于打开状态,尽管它显示为已关闭。
这是一种在覆盖标签栏的全屏模式下打开模式视图的方法吗?
或者还检查模态视图是否从另一个视图关闭?
编辑:
我尝试了所有这些代码:
nw = [[NewsViewController alloc] initWithNibName:@"NewsViewController" bundle:nil];
nw.modalInPopover = YES;
nw.wantsFullScreenLayout = YES;
nw.hidesBottomBarWhenPushed = YES;
nw.contentSizeForViewInPopover = CGSizeMake(320, 480);
nw.modalPresentationStyle = UIModalPresentationFullScreen;
nw.view.frame = [[UIScreen mainScreen] applicationFrame];
[nw.view setNeedsLayout];
但什么都没有!不能全屏!!
请问有什么想法吗?
谢谢,
阿尔贝托