SDWebimage加载GIF

作者: 赵周桥lucky | 来源:发表于2016-07-14 10:34 被阅读71次

1.导入头文件#import

2.NSString*name =@"refreshImage.gif";

NSString*filePath = [[NSBundlebundleWithPath:[[NSBundlemainBundle]bundlePath]]pathForResource:nameofType:nil];

NSData*imageData = [NSDatadataWithContentsOfFile:filePath];

self.imageView.image= [UIImagesd_animatedGIFWithData:imageData];

相关文章

网友评论

    本文标题:SDWebimage加载GIF

    本文链接:https://www.haomeiwen.com/subject/msyejttx.html