1、android
AndroidManifest.xml文件中,
screenOrientation="landscape" 为横屏,
screenOrientation="portrait"为竖屏
2、iOS
// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
//return UIInterfaceOrientationMaskLandscape;
return UIInterfaceOrientationMaskPortrait;
#endif
}