Я хочу настроить модальное представление стиля 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.