https://mp.weixin.qq.com/s/cltsFffNGIRe0u4-iJ5yVQ
PresentViewController
let mainViewController = UIView() // 即需要被present的view
mainViewController.modalPresentationStyle = .fullScreen
self.present(mainViewController, animated: true, completion: nil)
- (UIModalPresentationStyle)modalPresentationStyle {
return UIModalPresentationFullScreen;
}
网友评论