UIScrollView _getDelegateZoomView bug 經歷


[UIScrollView _getDelegateZoomView]
UIKit -[UIScrollView_offsetForCenterOfPossibleZoomView:withIncomingBoundsSize:] + 64html

bugly 騰訊給出的解釋

閃退場景一:recorder deleteRecording 以前 先判斷文件是否存在,不然會形成過分釋放,解決方法:git

if ([[NSFileManager defaultManager] fileExistsAtPath:self.recorder.url.path]) {
if ([self.recorder deleteRecording])
NSLog(@"Failed to delete %@", self.recorder.url);
}github

閃退場景二: delegate = nil 。
將XXViewContrller設置爲delegate時,當頁面發生跳轉時,XXViewController的對象會被釋放,這是代碼走到[_delegate callbackMethod],便出現crash。解決方法有二:1.將@property (nonatomic ,assign) id delegate; 中 assign關鍵字改成weak。 2.在XXViewController的delloc方法中添加:xxx.delegate = nil; ide

http://www.cnblogs.com/smileEvday/p/iOSCrash.htmlatom

  • http://artsy.github.io/blog/2015/07/30/Notorious-BUG-Part-1/
Perfect, an exact replica of the crash report, so now I know with confidence that the problem is that theARArtworkViewControlleris released by the time that method is called.

問題的方向是對的,都是vc提早釋放,而後野指針的問題引發,
block 強引用一樣會產生此類問題url

相關文章
相關標籤/搜索