当我将我的UIViewController
with设置为时,没有滑入。没有使用过渡。modalPresentationStyle
UINavigationController
UIModalPresentationCurrentContext
UIViewController
这是我的代码:
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
礼物作为叠加。
顺便说一句:当ViewController
被解雇时,动画效果很好。