使用SDWebImage加载Gif

'''
UIImageView *bgImageView = [[UIImageView alloc] init];
NSString *path = [[NSBundle mainBundle] pathForResource:@"icon_home" ofType:@"gif"];
NSData *data = [NSData dataWithContentsOfFile:path];
UIImage *image = [UIImage sd_imageWithData:data];
bgImageView.image = image;

'''

你可能感兴趣的:(使用SDWebImage加载Gif)