cocos2d在IOS6上的初始屏幕方向

在6之前初始方向都是UIDeviceOrientationLandscapeLeft,用新的sdkios7編譯後發現,初始方向是UIDeviceOrientationLandscapeRight,尼瑪,真痛苦,網上各種找,試了- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation 

這個方法,發現沒用,最後無奈發現Info.plist中的Supported interface orientations數組中第一個竟然是Landscape (left home button),於是,調換了這2個的順序,第一個爲Landscape (right home button)。重新編譯,竟然成了,好吧!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章