sdwebimage加载本地图片
2017-07-14 14:22
1021 查看
UIImageView *imgv = [[UIImageView alloc] initWithFrame:CGRectMake(-4,-7.84, 54, 34)];
NSString *SuperBgImgPath = [[NSBundle mainBundle] pathForResource:@"kxmovieSuperPersonLOginBgImg" ofType:@"gif"];
[imgv sd_setImageWithURL:[NSURL fileURLWithPath:SuperBgImgPath]];
[_superManBgView addSubview:imgv];
imgv.layer.cornerRadius = imgv.frame.size.height/2;
imgv.layer.masksToBounds = YES;
NSString *SuperBgImgPath = [[NSBundle mainBundle] pathForResource:@"kxmovieSuperPersonLOginBgImg" ofType:@"gif"];
[imgv sd_setImageWithURL:[NSURL fileURLWithPath:SuperBgImgPath]];
[_superManBgView addSubview:imgv];
imgv.layer.cornerRadius = imgv.frame.size.height/2;
imgv.layer.masksToBounds = YES;
相关文章推荐
- SDWebImage异步加载网络图片 缓存内存及本地
- SDWebImage使用——一个可管理远程图片加载的类库
- SDWebImage使用——一个可管理远程图片加载的类库
- SDWebImage使用——一个可管理远程图片加载的类库
- 远程图片加载:SDWebImage
- SDWebImage使用——一个可管理远程图片加载的类库
- SDWebImage异步加载图片及缓存的管理与清理 -- 推荐
- SDWebimage 加载大量图片的时候内存泄露的解决方法(ios自学笔记)
- 解决SDWebImage加载多个图片内存崩溃的问题
- SDWebImage异步加载图片及缓存的管理与清理
- SDWebImage 加载网络图片失败,重新运行,就能加载成功。
- SDWebImage一个可管理远程图片加载的类库
- 实现图片缓存本地 SDWebImage
- iOS 图片加载框架SDWebImage解读
- 一个很好用的异步加载图片的类库SDWebImage
- SDWebImage 加载网络图片
- SDWebImage 如何加载存储在Ftp服务器上的图片
- SDWebImage动画加载图片
- 基于SDWebImage的网络图片加载处理 & 获取网络中得UIimage
- YYWebImage的基本使用: 与SDWebImage 相比在性能方面有很大的提升,YYWebImage 的图片加载的时候不是直接加载原图,而是通过图片重绘的形式将图片加载上去的,性能消耗很小