开发者

How to make a UISplitViewController in portrait mode?

开发者 https://www.devze.com 2022-12-28 09:33 出处:网络
I want to make a UISplitViewController in portrai开发者_运维知识库t mode just like in the Settings app. How can I do it?A bit late, but also take a look at the MGSplitViewController by Matt Gemmel. It

I want to make a UISplitViewController in portrai开发者_运维知识库t mode just like in the Settings app. How can I do it?


A bit late, but also take a look at the MGSplitViewController by Matt Gemmel. It does what you need and so much more. It's what UISplitViewController should be, and it's a snap to implement.


From the UISplitViewController class documentation:

A split view controller supports the same interface orientations as its currently visible child view controllers. Both view controllers are displayed in landscape orientations but only the detail view controller is displayed in portrait orientations. When transitioning between orientations, the split view controller sends messages to its delegate object to coordinate the display of a popover with the hidden view controller. For more information on the methods of this delegate object, see UISplitViewControllerDelegate Protocol Reference.

(Emphesis added.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号