美文网首页
使用SDWebImage加载Gif

使用SDWebImage加载Gif

作者: Arackboss | 来源:发表于2021-03-17 17:44 被阅读0次

'''
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

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