【发布时间】:2013-02-04 20:02:03
【问题描述】:
我在iOS 6.0 和iOS 6.0.1 上遇到了一个非常奇怪的问题。
每当我从任何视图控制器呈现模态视图然后关闭该模态视图时,我的父视图控制器的导航栏(从我呈现模态视图的位置)与状态栏重叠。这在iOS 6.0 和iOS 6.1 Simulators 上运行良好,但在设备上却搞砸了。
我的 Xcode 版本是 4.6。
这就是我展示我的模态的方式:
UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:iViewController];
[aNavigationController.navigationBar setBarStyle:UIBarStyleBlack];
[self presentModalViewController:aNavigationController animated:YES];
[aNavigationController release];
这就是我解除模态的方式:
[self dismissModalViewControllerAnimated:YES];
请在关闭模式后查看我的导航栏的截图:
【问题讨论】:
标签: iphone ios objective-c xcode cocoa-touch