1、加載後app crash,提示DiskImage之類的東西。對於這個問題把加的斷點去掉就行了。
2、webView的背景顏色爲黑色。想改爲白色。
在webViewDidFinishLoad:中調用
if ([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0) {
[self performSelector:@selector(clearBackground) withObject:nil afterDelay:0.1];
}
//修改webView的背景顏色爲白色
-(void)clearBackground{
UIView *V=self.kWebView;
while (V) {
[V setBackgroundColor:[UIColor whiteColor]];
V=[V.subviews firstObject];
if ([NSStringFromClass([V class]) isEqualToString:@"UIWebPDFView"]) {
[UIView animateWithDuration:0.25 animations:^{
self.kWebView.alpha=1.0;
}];
return;
}
}
}