在我的应用程序中支持横向它在 iOS 6 中运行良好。但是在 iOS 7 中我的设备发生了变化但是 self.view
不支持横向为什么?有人遇到过和我一样的问题吗?那么请帮助我。
我的方向代码是,
#pragma mark -
#pragma mark - Interface Orientation Delegate Methods
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if(interfaceOrientation == UIDeviceOrientationLandscapeLeft)
return YES;
return NO;
}
-(BOOL) shouldAutorotate
{
return NO;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeLeft;
}
我哪里错了??
最佳答案
-(BOOL) shouldAutorotate
{
return YES;
}
关于ios - 在 ios 7 中发布相关的横向 View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21309303/