当我提出我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