崩溃日志
11 UIKit 0x01ee6c7d -[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:] + 323
12 UIKit 0x01ee92f9 -[UIWebViewWebViewDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:] + 80
13 CoreFoundation 0x0356a10d __invoking___ + 29
14 CoreFoundation 0x03569fb8 -[NSInvocation invoke] + 360
15 CoreFoundation 0x03601b7a -[NSInvocation invokeWithTarget:] + 74
16 WebKitLegacy 0x09870d20 -[_WebSafeForwarder forwardInvocation:] + 160
17 CoreFoundation 0x035d798e ___forwarding___ + 478
18 CoreFoundation 0x035d778e _CF_forwarding_prep_0 + 14
19 CoreFoundation 0x0356a10d __invoking___ + 29
20 CoreFoundation 0x03569fb8 -[NSInvocation invoke] + 360
21 WebCore 0x0a990226 _ZL20HandleDelegateSourcePv + 118
22 CoreFoundation 0x035aa98f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
23 CoreFoundation 0x035a049d __CFRunLoopDoSources0 + 253
24 CoreFoundation 0x0359f9f8 __CFRunLoopRun + 952
25 CoreFoundation 0x0359f37b CFRunLoopRunSpecific + 443
26 CoreFoundation 0x0359f1ab CFRunLoopRunInMode + 123
27 GraphicsServices 0x057282c1 GSEventRunModal + 192
28 GraphicsServices 0x057280fe GSEventRun + 104
29 UIKit 0x01c1f9b6 UIApplicationMain + 1526
30 iSlideshow 0x004ffbad main + 141
31 libdyld.dylib 0x047deac9 start + 1
当我尝试在网页视图中嵌入iframe时,我收到此崩溃日志。 我用来嵌入iframe的功能 现在嵌入一个文本,它会在文本出现后崩溃 对于iframe,视频不会出现而且会崩溃。
-(void)handleExternalWebsite: (NSString*)embed :(UIView*)container
{
NSLog(@"embed --- %@", embed);
NSString *textValue= @"asdasdkasgdhjasgd";
webview = [[UIWebView alloc] initWithFrame:container.bounds];
[webview loadHTMLString:textValue baseURL:nil];
[container addSubview:webview];
}
-(void)dealloc{
if (webview.delegate == self)
{
webview.delegate = nil;
[webview stopLoading];
}
}