如何用透明背景呈现模态视图控制器

问题描述:

我使用swift以及如何呈现模态视图控制器,但他的背景是透明的。其他视图控制器的内容在后面可见。如何用透明背景呈现模态视图控制器

+1

这将是,如果你搜索类似的问题更好地发布新的前 – Azat

这一次为我的作品:

self.presentingViewController.providesPresentationContextTransitionStyle = YES; 
self.presentingViewController.definesPresentationContext = YES; 
modal.modalPresentationStyle = UIModalPresentationOverCurrentContext;