1、app在ios8的机子上真机调试,在页面跳转后,在返回到上级界面,再次点击屏幕,就出现闪退.
开启僵尸对象,打印信息如下:* -[_UIWebViewScrollView _systemGestureStateChanged:]: message sent to deallocated instance 0x3183a00
2、app在ios9 的机子上真机调试一切正常。
PHP中文网2017-04-18 09:50:01
Owner, I have also encountered this problem, but it has not been solved yet. Have you solved it now? Can you communicate with me?
黄舟2017-04-18 09:50:01
Be extra careful when using delegate and datasource on iOS8.
Some delegate and datasource on iOS8 are declared using assign. If not released in time, it is easy to cause a crash.
It is recommended that wherever delegate is used, its display location should be set to nil in dealloc.
as
- (void)dealloc
{
_tableView.delegate = nil;
_tableView.datasource = nil;
_scrollView.delegate = nil;
_gesture.delegate = nil;
}
伊谢尔伦2017-04-18 09:50:01
The problem was found because I referenced a third-party buckle and used the swizzle method to cause a memory leak.
天蓬老师2017-04-18 09:50:01
Which third party does the poster use? Do you mind disclosing it? I have the same problem here...
ringa_lee2017-04-18 09:50:01
After searching for 6 hours, I finally found which library caused it. . . UIScrollView+HeaderScaleImage! ! ! ! !
阿神2017-04-18 09:50:01
Check whether the UIScrollView category in your project has overridden the dealloc method