【发布时间】:2011-12-11 13:10:00
【问题描述】:
我有一个视图(它继承了 navigationController 属性),但是当我单击此视频中的图像时,我需要以模态方式呈现一个 viewController。
看这里:Navigation View in Modal View我是这样做的:
*我创建了一个新的 navigationController,以我需要呈现的视图作为根,并以模态方式呈现我的新 navigationController**
moviePlayer = [[[CustomMoviePlayerViewController alloc] initWithPath:path1] autorelease];
navigationController1 = [[UINavigationController alloc] initWithRootViewController:moviePlayer];
[self.navigationController presentModalViewController:navigationController1 animated:YES];
然后我这样做:
[self.navigationController presentModalViewController:navigationController1 animated:YES];
展示我的导航控制器。
当我关闭 navigationController 时,我的屏幕如下所示:
我的页眉和页脚消失了。对此有任何解决方案。谢谢!
【问题讨论】:
-
[self.navigationController presentModalViewController:navigationController1.view animated:YES]; insted 分配您的 navigationController 分配它的视图...如上..n 检查
标签: iphone uiviewcontroller uinavigationcontroller