Reply:
The Internet example, a reference
http://blog.csdn.net/dongge_111/article/details/7394950
http://www.istar.name/blog/ios-development-rotation
Reply:
It depends on your specific implementation of the code of the game ah. Paste the code you look
Reply:
First try this, first ensure both portrait and landscape screen feasible. Then in the horizontal screen ViewControllers, add this:
- (NSUInteger) supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
In the vertical screen ViewController added:
- (NSUInteger) supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
Reply:
If not ios6 version can be used in AppDelegate, achieve standings horizontal screen.
/ / Need to support landscape. According to customize
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
{
return UIInterfaceOrientationIsLandscape (interfaceOrientation);
}
# If __ IPHONE_OS_VERSION_MAX_ALLOWED> = __ IPHONE_6_0
- (NSUInteger) application: (UIApplication *) application supportedInterfaceOrientationsForWindow: (UIWindow *) window
{
return UIInterfaceOrientationMaskAllButUpsideDown; / / if the problem here may be xcode version, xcode version to 4.5 +
}
# Endif

Is set to landscape mode
Reply:
This did not come across ..
Reply:
http://blog.csdn.net/xuanwenchao/article/details/7979744
Section 5
Reply:
http://blog.csdn.net/duxinfeng2010/article/details/8024379
No comments:
Post a Comment