在显示该UIViewController之前,修改两个属性
- 设置背景颜色为
UIColor.clearColor() - 设置
modalPresentationStyle为OverCurrentContext
eg:
let myVC = MyViewController()
myVC.view.backgroundColor = UIColor.clearColor()
myVC.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext