我想設置我的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