【发布时间】:2015-04-07 10:13:41
【问题描述】:
我使用 swift 以及如何呈现模态视图控制器,但他的背景是透明的。其他视图控制器的内容在后面可见。
【问题讨论】:
-
在发新问题之前搜索类似问题会更好
标签: ios swift uiviewcontroller presentmodalviewcontroller
我使用 swift 以及如何呈现模态视图控制器,但他的背景是透明的。其他视图控制器的内容在后面可见。
【问题讨论】:
标签: ios swift uiviewcontroller presentmodalviewcontroller
这个对我有用:
self.presentingViewController.providesPresentationContextTransitionStyle = YES;
self.presentingViewController.definesPresentationContext = YES;
modal.modalPresentationStyle = UIModalPresentationOverCurrentContext;
【讨论】: