我想将我的 UIModalPresentationFormSheet
样式的模态视图有时设置为 UIModalPresentationFullScreen
样式,但当它已经显示为 UIModalPresentationFormSheet
样式时,使用代码 "[xx setModalPresentationStyle:UIModalPresentationFullScreen];
" 无法进入全屏模式。
是否有一种方法可以在模态视图显示后更改其样式?我的代码如下:
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.