我想设置我的UIModalPresentationFormSheet
风格模式的看法,成为UIModalPresentationFullScreen
风格的某个时候,但是当它已经与UIModalPresentationFormSheet
风格所示,它使用的代码不能转到全屏“[xx setModalPresentationStyle:UIModalPresentationFullScreen];
”如何在已经显示模态视图控制器时更改modalPresentationStyle?
有没有办法改变现在的风格显示模态视图后?我的代码是这样的:
UITableDownload* vc = [[UITableDownload alloc] initWithStyle:UITableViewStylePlain];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
[nav setModalPresentationStyle:UIModalPresentationFormSheet];
[MainAppDelegate mainBrowserViewController] presentModalViewController:nav animated:YES];
...//after shown,sometime I implement following code:
[nav setModalPresentationStyle:UIModalPresentationFullScreen];//(The "nav" object is the same as above code)
//But the change style code takes no effect.
这将不会产生任何效果 – jyavenard 2012-01-11 08:25:54