Ios Swift UIModalPresentationStyle.PageSheet
我正在使用UIModalPresentationStyle.PageSheet显示一些HTML内容。但滚动视图不会出现Ios Swift UIModalPresentationStyle.PageSheet,ios,swift,Ios,Swift,我正在使用UIModalPresentationStyle.PageSheet显示一些HTML内容。但滚动视图不会出现 let uiNavController : UINavigationController = UINavigationController(rootViewController: MyHtmlClass) navController.modalPresentationStyle = UIModalPresentationStyle.PageSheet prese
let uiNavController : UINavigationController = UINavigationController(rootViewController: MyHtmlClass)
navController.modalPresentationStyle = UIModalPresentationStyle.PageSheet
presentViewController(uiNavController, animated: true, completion: nil)
是否可以显示滚动视图?您将
UINavigationController
定义为uiNavController
,然后设置navController
的modalPresentationStyle
。替换这个
uiNavController.modalPresentationStyle = .PageSheet
我替换了它,但滚动条看起来不象你们想在iPhone上演示的样子?我想在iPad上演示