Cocos2d 3.0 Set Portrait orientation -


AppDelegate.m has already been added to the code but it still does not work in the picture.

  - (NSUntengar) Supported Interface Orientation {Return UINTFORDAnternationMask Portrait; } - (BOOL) RequiredAutotettoInterfaceAuthentication (UINPs Orientation) Interface Orientation {Return UIInterfaceOrientationIsPortrait (Interface Orientation); }  

Here is the Xcode abstract page: Enter image details here < / P>

The solution has been found, we can set the orientation in setupCocos2dWithOptions. Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) Launch Option {{Self SetupCocos 2 with Option: @ {CCSetupShowDebugStats: @ (YES), CCSetupScreenOrientation: CCScreenOrientationPortrait,}]; Yes come back }


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -