当我尝试在 iOS13 上以横向模式打开 UIViewController 时,应用程序卡住。 (如果你之前没有旋转屏幕,如果在打开此屏幕之前旋转手中的手机,则不会出现条纹)。它在以前的版本上运行良好。
- (BOOL)shouldAutorotate
{
return NO;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeLeft;
}
我该如何克服这个问题?看起来像是苹果这边的一个错误
在控制台卡住的时刻我看到
XPC connection interrupted
最佳答案
重新加载模拟器。我在 UIAlertView 中也遇到过同样的错误
关于iOS13:当我尝试以横向模式打开 UIViewController 时,应用程序卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57954582/