相关疑难解决方法(0)

UIWebView随机崩溃在[UIViewAnimationState release]:消息发送到解除分配的实例

我有一个随机UIWebView使用崩溃iOS8.1UIWebView,使用iPhone5的.在我的测试中,崩溃不会出现在iOS7上.

我创建了这个github存储库来重现崩溃:https: //github.com/crarau/WebViewCrash

基本上我正在添加一个UIWebView并加载www.amazon.com

随机的应用程序崩溃的上WebThreadEXC_ARM_BREAKPOINT

在控制台上启用Zombie跟踪后,会显示以下消息:

[UIViewAnimationState release]: message sent to deallocated instance 0x14deff70
Run Code Online (Sandbox Code Playgroud)

这里UIView加载时会发生什么:

[super viewDidLoad];

NSURLRequest * urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.amazon.com"]];

self.webView.layer.cornerRadius = 0;
self.webView.userInteractionEnabled = YES;
self.webView.multipleTouchEnabled = YES;
self.webView.backgroundColor = [UIColor clearColor];
self.webView.scrollView.scrollEnabled = NO;
self.webView.scrollView.bounces = NO;
[self.webView loadRequest:urlRequest];
Run Code Online (Sandbox Code Playgroud)

异常堆栈跟踪:

    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000001, 0x000000000000defe
    Triggered by Thread:  2

    Thread …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c uiwebview ios

21
推荐指数
2
解决办法
6336
查看次数

标签 统计

ios ×1

iphone ×1

objective-c ×1

uiwebview ×1