當我提出我UIViewController
與父UINavigationController
一套modalPresentationStyle
到UIModalPresentationCurrentContext
,則UIViewController
不滑,沒有使用過渡。沒有動畫時modalPresentationStyle設置爲UIModalPresentationCurrentContext
這裏是我的代碼:
UIViewController *viewController = [[UIViewController alloc] init];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewController];
navController.navigationBarHidden = YES;
self.navigationController.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentViewController:navController animated:YES completion:nil];
當我不設置modalPresenttionStyle
,一切工作正常。但我需要這種風格,因爲我想把UIViewController
作爲疊加。
BTW:當ViewController
被解僱時,動畫工作正常。
你有沒有找到一個解決這個? – Alf 2014-02-19 11:00:06
我遇到同樣的問題。你有沒有找到解決方案? – 2014-05-11 14:48:23