开发者

Prevent UISplitViewController Master View from hiding (iPad iOS 4.x)

开发者 https://www.devze.com 2023-01-27 04:09 出处:网络
All worked fine in iOS 3.x on the iPad to prevent the Master view of the UISplitViewController from hiding.I created a method SizeControls() that was called whenever the device 开发者_C百科rotated (Wi

All worked fine in iOS 3.x on the iPad to prevent the Master view of the UISplitViewController from hiding. I created a method SizeControls() that was called whenever the device 开发者_C百科rotated (WillAnimateRotation event).

Now with iOS 4 on the iPad this no longer works. While the SizeControls is called something is still causing the Master view to be hidden. What do I need to do so that on both iOS 3 and iOS 4 I can have both Master and Details views appear just like in the Settings UI?

Thank you.


Take a look here, apple recommends you show the master view in a popover when in portrait.

If thats not a goer take a look at MGSplitViewController. Its a very nice split view which gives you this functionality for free.

0

精彩评论

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