objective-c - iOS程序在ios8的系统下页面跳转后闪退,ios9的系统下不会闪退
天蓬老师
天蓬老师 2017-04-18 09:48:01
0
9
498

1、app在ios8的机子上真机调试,在页面跳转后,在返回到上级界面,再次点击屏幕,就出现闪退.
开启僵尸对象,打印信息如下:* -[_UIWebViewScrollView _systemGestureStateChanged:]: message sent to deallocated instance 0x3183a00
2、app在ios9 的机子上真机调试一切正常。

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(9)
Ty80

Owner, I have also encountered this problem, but it has not been solved yet. Have you solved it now? Can you communicate with me?

黄舟

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;
}
左手右手慢动作
  • (void)dealloc
    {

    _webView.delegate = nil;

    }

伊谢尔伦

viewWillDisappear 里写一句 [self.webView stopLoading];

伊谢尔伦

The problem was found because I referenced a third-party buckle and used the swizzle method to cause a memory leak.

Peter_Zhu

Which third party does the poster use? Do you mind disclosing it? I have the same problem here...

左手右手慢动作

After searching for 6 hours, I finally found which library caused it. . . UIScrollView+HeaderScaleImage! ! ! ! !

阿神

Check whether the UIScrollView category in your project has overridden the dealloc method

小葫芦

Using this UIScrollView+HeaderScaleImage, how to solve it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!