xcode4.5 iOS6 cocos2d-x 横屏解决方案


原文:http://blog.csdn.net/nong1209/article/details/8148601

1.在 RootViewController.m总增加


?
1
2
3
4
5
6
7
8
-(NSUInteger)supportedInterfaceOrientations{
   returnUIInterfaceOrientationMaskLandscape;
}
 
 
- (BOOL)shouldAutorotate {
   returnYES;
}

2.在 AppDelegate.m 中增加

?
1
window.rootViewController = viewController;

posted on 2012-12-17 17:44  几百人有爱  阅读(164)  评论(0编辑  收藏  举报