在我的日志服务中遇到了很多这种崩溃.任何提示?我的应用仅支持纵向模式.
线程:崩溃:com.apple.main-thread
0 libobjc.A.dylib 0x32bfbf46 objc_msgSend + 5 1 UIKit 0x289ba531 -[UIWindow _updateInterfaceOrientationFromDeviceOrientation:] + 152 2 CoreFoundation 0x254d44a1 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 3 CoreFoundation 0x2543093d _CFXNotificationPost + 1784 4 Foundation 0x261609b9 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72 5 UIKit 0x289ba2f3 -[UIDevice setOrientation:animated:] + 318 6 UIKit 0x289ba0a3 -[UIApplication handleEvent:withNewEvent:] + 1566 7 UIKit 0x289b99c1 -[UIApplication sendEvent:] + 72 8 UIKit 0x28a1e801 _UIApplicationHandleEvent + 632 9 GraphicsServices 0x2c79d679 _PurpleEventCallback + 528 10 GraphicsServices 0x2c79d2c3 PurpleEventCallback + 34 11 CoreFoundation 0x254e1dab __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34 12 CoreFoundation 0x254e1d47 __CFRunLoopDoSource1 + 346 13 CoreFoundation 0x254e0349 __CFRunLoopRun + 1608 14 CoreFoundation 0x2542e621 CFRunLoopRunSpecific + 476 15 CoreFoundation 0x2542e433 CFRunLoopRunInMode + 106 16 GraphicsServices 0x2c79c0a9 GSEventRunModal + 136 17 UIKit 0x28a18809 UIApplicationMain + 1440 18 simplyUs 0x00052013 main (main.m:14)
解决方法
我遇到过同样的问题.
可能我的情况与你的相似.一些解除分配的控制器仍然收到方向通知.当我在动作表委托方法中呈现控制器时,我崩溃了:
actionSheet:clickedButtonAtIndex:
但当控制器出现在里面时
actionSheet:didDismissWithButtonIndex:
现在一切正常.我认为当窗口在顶部时,我们应该在窗口中显示控制器.因此,在iOS8中显示控制器之前,应该关闭所有警报视图/操作表窗口.否则它仍会收到方向通知.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。