利用UIWebView显示gif

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

NSString *path = [[NSBundle mainBundle] pathForResource:@"3" ofType:@"gif"];
NSData *gifData = [NSData dataWithContentsOfFile:path];
[_webView loadData:gifData MIMEType:@"image/gif" textEncodingName:nil baseURL:nil];