gpt4 book ai didi

iOS 支持的 InterfaceOrientations 循环崩溃

转载 作者:搜寻专家 更新时间:2023-10-30 20:16:21 26 4
gpt4 key购买 nike

我收到此错误,但不知道是什么原因造成的。这在 iPhone 和 iPad 上的 iOS 8.2 中都会发生。

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_PROTECTION_FAILURE at 0x00554ff4 raw
0 libobjc.A.dylib lookUpImpOrForward + 3
4 libobjc.A.dylib -[NSObject respondsToSelector:] + 38
5 UIKit -[UIWindow _supportedInterfaceOrientationsForRootViewController] + 56
6 UIKit -[_UIFallbackPresentationViewController supportedInterfaceOrientations] + 60
7 UIKit -[_UIFallbackPresentationViewController supportedInterfaceOrientations] + 60
...
510 UIKit -[_UIFallbackPresentationViewController supportedInterfaceOrientations] + 60

我读到有人说这应该可以解决这类问题,但没有用。

-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
if ( IDIOM == IPAD ) {
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;

} else {
return UIInterfaceOrientationMaskPortrait;
}
}

最佳答案

我最终就这个问题联系了苹果。据他们说与Game Center有关。苹果改变了它的一些东西,游戏中心初始化的旧方法会产生随机崩溃。添加了一个 Game Center Manger到我的游戏,这些随机崩溃停止了。

关于iOS 支持的 InterfaceOrientations 循环崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29095076/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com