iOS8中的UIWebView和MIMEType映像

iOS8中的UIWebView和MIMEType映像,ios,objective-c,xcode,uiwebview,ios8,Ios,Objective C,Xcode,Uiwebview,Ios8,我在iOS8和iOS7之间有一个兼容性问题 NSData *saimage = [[NSData alloc] initWithBase64EncodedString:@"/9j/4AA........" options:NSDataBase64Encoding64CharacterLineLength]; UIWebView *securityimageImg ; securityimageImg = [[UIWebView alloc] initWithFrame: CGRectMak

我在iOS8和iOS7之间有一个兼容性问题

NSData *saimage = [[NSData alloc] initWithBase64EncodedString:@"/9j/4AA........"  options:NSDataBase64Encoding64CharacterLineLength];

UIWebView *securityimageImg ;

securityimageImg = [[UIWebView alloc] initWithFrame: CGRectMake( 238, 35, 75, 75)];
securityimageImg.userInteractionEnabled = NO;
[securityimageImg setBackgroundColor:[UIColor clearColor]];
securityimageImg.delegate = self;
[securityimageImg loadData: saimage MIMEType:@"image/gif"  textEncodingName: @"UTF-8" baseURL:nil];

[self.view addSubview:securityimageImg];

UIImage *myImage = [[UIImage alloc] initWithData:saimage];

UIImageView *imgView = [[UIImageView alloc] initWithImage:myImage];
imgView.frame = CGRectMake( 238, 105, 75, 75);

[self.view addSubview:imgView];
在上面的代码中,我使用了一个NSData对象,将图像作为编码文本。然后,我使用sane填充我的web视图和UIImage

现在,UIWebView和UIImageView都在iOS7中显示图像 其中,只有UIImageView在iOS8中显示图像

因此,我的UIWebView在iOS8中对于MIMEType:image/gif失败

我没有发现UIWebView与didFailLoadWithError委托之间的任何加载问题

我是不是遗漏了什么

代码6:Beta 6


更新:在iOS8黄金版中测试。问题依然存在

你有日志信息吗?没有Jagen。我使用开发者菜单登录了Safari。我看到有2页被渲染。。只有在iOS8中。。在iOS7中,只有一页是空白的。。另一个是我要找的。由于某些原因,模拟器中出现了一个空白页面。我不能理解这种行为!