开发者

Problem with supported device orientation

开发者 https://www.devze.com 2023-03-07 12:03 出处:网络
this is my first app with xcode. I use xcode 4 . And my first problem is that i maked this http://tinypic.com/r/2hykvbt/7开发者_JAVA技巧

this is my first app with xcode. I use xcode 4 . And my first problem is that i maked this http://tinypic.com/r/2hykvbt/7开发者_JAVA技巧 but my app still work only with Portrait orientation . Help please


You should override shouldAutorotateToInterfaceOrientation in your custom view controller subclass to support all orientations. A simple return YES; would suffice. What you are doing right now is setting the UISupportedInterfaceOrientations key in Info.plist. This info helps iOS identify choose the suitable launch orientation for your app based on the current orientation of the device.


It appears in your screenshot that all device orientations are disabled, rather than enabled; clicking the orientations you want once more should help you.

0

精彩评论

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