![](/img/trans.png)
[英]HTML page, iPad orientation change redraws incorrectly - displays split view
[英]Switching between a “normal” view and a Split View Controller on orientation change IPad
我正在編寫一個 iPad 應用程序; 我想在設備處於縱向時顯示“正常”視圖,當設備更改為橫向模式時顯示“拆分視圖”。
我可以讓設備切換“正常視圖”,但是在我的視圖 controller 中我沒有看到明顯的方法。
我的 ViewController 有兩個 UIView,一個叫做縱向,一個叫做風景。 在 Interface Builder 中,我將 UIView 分配給每個屬性。 然后,當設備方向改變時,“didRotateFromInterfaceOrientation”被調用並且我的觀點改變了。 如何將“肖像”分配給拆分視圖 Controller?
我對這個問題有什么誤解嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.