![](/img/trans.png)
[英]How to choose UIInterfaceOrientationLandscapeRight or UIInterfaceOrientationLandscapeLeft?
[英]How to init UIViewController with UIInterfaceOrientationLandscapeLeft?
我有一個繼承自UIViewController的WebViewController,還使用了shouldAutorotateToInterfaceOrientation。
到目前為止,一切都很好,但是當我切換到WebViewController時,它將以Portrait模式啟動。 只有當我轉動iPhone時,它才會開始旋轉。
現在知道如何從UIInterfaceOrientationLandscapeLeft開始嗎?
謝謝
請看一下本教程 -它應該可以解決您的問題。
基本上,你必須添加一個關鍵UIInterfaceOrientation
與價值UIInterfaceOrientationLandscapeLeft
在Info.plist文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.