UIWebView显示gif类型图片
2020-12-13 15:45
阅读:252
YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
标签:style class blog code ext color
NSData *gifFile = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"text" ofType:@"gif"]]; _mywebview.scalesPageToFit = YES; [_mywebview loadData:gifFile MIMEType:@"image/gif" textEncodingName:nil baseURL:nil];
html
NSString *html = @" "text.gif\">"; NSString *path = [[NSBundle mainBundle] resourcePath]; NSURL *baseURL = [NSURL fileURLWithPath:path]; //_mywebview.scrollView.bounces = NO; _mywebview.scalesPageToFit = YES; //_mywebview.scrollView.scrollEnabled = NO; [_mywebview loadHTMLString:html baseURL:baseURL];
UIWebView显示gif类型图片,搜素材,soscw.com
UIWebView显示gif类型图片
标签:style class blog code ext color
原文地址:http://www.cnblogs.com/lovemm/p/3796803.html
上一篇:Java 之 常用函数式接口
评论
亲,登录后才可以留言!