【发布时间】:2012-09-26 00:40:17
【问题描述】:
我正在尝试模态显示如下视图控制器:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"addPopover"];
vc.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentModalViewController:vc animated:YES];
现在使用UIModalPresentationCurrentContext 意味着我可以用透明背景呈现这个视图,并在新视图后面看到我的另一个视图。但是,它使我无法通过过渡来呈现它。
任何想法为什么?或者我该如何解决这个问题?谢谢。
【问题讨论】:
-
你正在展示的 ViewController 的展示风格是什么?
-
@bbodayle,我遇到了同样的问题,我已经尝试了两个 ViewController 上的所有演示样式/组合。
标签: iphone objective-c ipad uimodaltransitionstyle uimodalpresentationstyle