info plist里面修改
Supported interface orientations
Landscape (left home button) // 横屏
Landscape (right home button) // 横屏
Portrait (top home button) // 竖屏
Portrait (bottom home button) // 竖屏
RootViewController.mm里
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// return UIInterfaceOrientationIsLandscape( interfaceOrientation ); // 横屏
return UIInterfaceOrientationIsPortrait( interfaceOrientation ); // 竖屏
}