开发者

UISplitViewController in landscape mode only and without nib

can anyone explain to me how to setup the UI for a UISplitViewControll without using a nib 开发者_如何学Cand have it show in landscape more with both master and detail view?

---- RESOLVED ----

all i had to do was go into the info.plist and remove a few keys

<key>UIInterfaceOrientation</key> 
    <string>UIInterfaceOrientationLandscapeLeft</string>
    <string>UIInterfaceOrientationLandscapeRight</string>

and it works


Edit the info.plist and leave just the orientation you want to support. In my case just landscape left and right

<key>UIInterfaceOrientation</key>  
    <string>UIInterfaceOrientationLandscapeLeft</string> 
    <string>UIInterfaceOrientationLandscapeRight</string> 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜