UIAlertView在iOS 8.3中崩溃

UIAlertView在iOS 8.3中崩溃,第1张

概述最近我开始接收UIAlertView的崩溃报告,只有使用iOS 8.3的用户 Crashlytics报道: Fatal Exception: UIApplicationInvalidInterfaceOrientation Supported orientations has no common orientation with the application, and [_UIAlertShim 最近我开始接收UIAlertVIEw的崩溃报告,只有使用iOS 8.3的用户

Crashlytics报道:

Fatal Exception: UIApplicationInvalIDInterfaceOrIEntation
Supported orIEntations has no common orIEntation with the application,and [_UIAlertShimPresentingVIEwController shouldautorotate] is returning YES

发生碰撞的行是[alertVIEw show]:

UIAlertVIEw *alertVIEw = [[UIAlertVIEw alloc] initWithTitle:Title                                                    message:message                                                   delegate:nil                                          cancelbuttonTitle:cancelbuttonTitle                                          otherbuttonTitles:nil];[alertVIEw show];

该代码在应用程序中很长时间,现在它开始崩溃.有没有人遇到类似的行为,并解决了问题?

解决方法 尝试实现这一点
- (BOol)shouldautorotate {   return NO;}-(NSUInteger)supportedInterfaceOrIEntations {    return UIInterfaceOrIEntationMaskPortrait;}

也检查:Orientation issue in Lanscape mode while opening camera in iOS 7 in iPhone

总结

以上是内存溢出为你收集整理的UIAlertView在iOS 8.3中崩溃全部内容,希望文章能够帮你解决UIAlertView在iOS 8.3中崩溃所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1097183.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存