ios - 在 ios 7 中发布相关的横向 View ?

标签 ios iphone objective-c

在我的应用程序中支持横向它在 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/

相关文章:

ios - 为什么当分发配置文件过期时,iOS App Store 应用程序仍然启动?

ios - webview.load(URLRequest View 保持为空

ios - html5 视频 - 在桌面上播放,iPhone 6s,不会在 5s 上播放?

iphone - 复制数组项的数组最小范围

iphone - fileExistsAtPath API 始终返回 NO

ios - 将 UITouch 保存到 NSDictionary

objective-c - ios 将地理标记写入图像

iphone - 如何从格式和 va_list 中获取格式化的 NSString?

iphone - 不明白为什么我的 GCD tableview 崩溃了

ios - 折线未显示在谷歌地图中