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

1.在 RootViewController.m总增加

?
1
2
3
4
5
6
7
8
-( NSUInteger )supportedInterfaceOrientations{
    return UIInterfaceOrientationMaskLandscape;
}
 
 
- ( BOOL )shouldAutorotate {
    return YES ;
}

2.在 AppDelegate.m 中增加

?
1
window.rootViewController = viewController;

你可能感兴趣的:(xcode4.5 iOS6 cocos2d-x 横屏解决方案)