在iOS上present一个半透明的viewController,上级view黑色



let exampleVC = HomeWorkExamplesController()
exampleVC.delegate = self

exampleVC.modalPresentationStyle = UIModalPresentationStyle.overFullScreen

self.present(exampleVC, animated: true) {
exampleVC.view.superview?.backgroundColor = UIColor.clear

}



Loading Disqus comments...
Table of Contents