2014-09-23 89 views
8

在我的日誌記錄服務中發生了很多此類故障。任何提示?我的應用只支持肖像模式。在_updateInterfaceOrientationFromDeviceOrientation上發生ios8崩潰

主題:崩潰:com.apple.main線程

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) 
+0

你有沒有找到一個解決這個問題? – 2014-10-20 17:58:38

回答

0

我有同樣的問題。

可能我的情況與您的情況類似。一些釋放控制器仍然收到定向通知。我崩潰了,當我提出在行動表委託方法控制:

actionSheet:clickedButtonAtIndex: 

但當呈現內

actionSheet:didDismissWithButtonIndex: 

控制器和現在的一切工作正常。我認爲我們應該在窗口中顯示控制器,當這個窗口在最上面時。因此,在iOS8中呈現控制器之前,所有警報視圖/操作表窗口應該被解除。否則,它仍然會收到定向通知。

0

如果除了崩潰追蹤追蹤之外還有更多與崩潰相關的信息,它將有所幫助。我懷疑問題是消息傳遞釋放對象;一個關於這個問題的例子就是從NSNotification中崩潰。您可以嘗試啓用殭屍(Edit Schema內的診斷選項卡),以確定是否屬於這種情況。

要重新檢查方向支持,我建議在https://developer.apple.com/Library/ios/featuredarticles/ViewControllerPGforiPhoneOS/RespondingtoDeviceOrientationChanges/RespondingtoDeviceOrientationChanges.html 中說明的方法中設置斷點,如果您已經實現了它們。

最後一個需要注意的是在IOS 8,它們固定其具有在前面的IOS版本一些關鍵方法錯誤地忽略當前取向如狀態欄的高度/寬度 [UIApplication sharedApplication].statusBarFrame.size.height

這意味着大量的代碼,包括來自第三方庫的代碼,有代碼來解決原始問題,並且現在需要在iOS 8中禁用代碼。例如,代碼會從邏輯中掛鉤,例如查看狀態欄高度是否巨大以及系統處於橫向狀態。

相關問題