Forcing an iPad app to show splitView even in Portrait orientation(Like the Settings iPad app)

前端 未结 9 1382
不知归路
不知归路 2020-12-16 08:25

I am trying to develop a splitView based iPad app, that displays the split interface in every orientation. I have tried subclassing the UISplitViewController class as given

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 08:50

    What you are describing sounds like Apple's Settings app (on iPad). My intuition would be that this is not a UISplitView. It's just a view containing two table views. Fix the layout manually when the device rotates. In other words, if you don't want what a UISplitView does, then you don't a UISplitView at all.

    EDIT 12/19/2011: In iOS 5 the problem is basically solved, since you can now define your own container view controller, plus you can prevent the dismissal of the left view in a split view.

提交回复
热议问题