2016-03-21 30 views
0

我正在使用UIModalPresentationStyle.PageSheet來顯示一些HTML內容。但是scrollView不會出現。Swift UIModalPresentationStyle.PageSheet

let uiNavController : UINavigationController = UINavigationController(rootViewController: MyHtmlClass) 
    navController.modalPresentationStyle = UIModalPresentationStyle.PageSheet 
    presentViewController(uiNavController, animated: true, completion: nil) 

是否可以顯示scrollView?

回答

0

您將UINavigationController定義爲uiNavController,然後將modalPresentationStyle設置爲navController。替換這個;

uiNavController.modalPresentationStyle = .PageSheet 
+0

我替換它,但scrollBar不出現 –

+0

你試圖在iPhone上展示? –

+0

我正試圖在iPad中展示 –