SDWebimage加载GIF

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)