如果我在工程设置只能横屏
但是项目需要一到两个竖屏
那可不可以单独设置一个竖屏的view或者
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationPortrait;
}
- (BOOL)shouldAutorotate
{
return YES;
}
这样设置没有效果 还报错
Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'