iOS13:当我尝试以横向模式打开 UIViewController 时,应用程序卡住

标签 ios ios13

当我尝试在 iOS13 上以横向模式打开 UIViewController 时,应用程序卡住。 (如果你之前没有旋转屏幕,如果在打开此屏幕之前旋转手中的手机,则不会出现条纹)。它在以前的版本上运行良好。

- (BOOL)shouldAutorotate
{
    return NO;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscapeLeft;
}

我该如何克服这个问题?看起来像是苹果这边的一个错误


在控制台卡住的时刻我看到

XPC connection interrupted

最佳答案

重新加载模拟器。我在 UIAlertView 中也遇到过同样的错误

关于iOS13:当我尝试以横向模式打开 UIViewController 时,应用程序卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57954582/

相关文章:

ios - 新的 iOS 13 模态演示 : Presenting Controller Doesn't Move Down

ios - 如何在 opengl es 中使用由 UIGraphicsBeginImageContextWithOptions() 制作的图像

uiviewcontroller - Storyboard 实例化 WithIdentifier 导致 iOS 13 崩溃

swift - DateComponentsFormatter 在组件字符串上崩溃

ios - iOS 13 上未调用supportedInterfaceOrientations

swift - Xcode 12 Beta和iOS 14 : Weird console logs “objc[5551]: Class … is implemented in both”

ios - .cancelAllLocalNotifications 是否清除推送通知?

ios - 如何从 UIButton 操作方法获取 UITableViewCell 对象?

java - APNS-java 不会在 iOS 应用程序上增加角标(Badge)编号

ios - 使用自定义消息 Swift 4 打开消息