网上查阅了一些资料,简单包装了一下,上传代码,做一下记录。:-D 需要导入CoreGraphics.framework 用于绘制图形
iOS异步图片加载库..zip,远程图像,简单到一,二,三。
原文作者:hosea_zhou(简书) 文章地址:http://www.jianshu.com/p/dabc0c6d083e
改变图片的大小
超级简单的图片轮播器。
截取图片指定部分
一句代码搞定图片轮播和点击回调事件。只需要传入frame和间隔时间,图片Url或名字数组。图片加载任务在子线程执行,不会堵塞主线程。
基于第三方完善的相册图片多选并带有上传功能操作,可以直接在项目使用。另外说明,使用中内存少量上涨是对的,需图片缓存和处理,上传完成后清除缓存,内存会恢复正常。如有问题请回复,谢谢,O(∩_∩)O谢谢!
简单的基于NSMutableAttributedString实现的图文混排,表情也可以用这种方式实现,做个参考而已
三个view复用,支持网络(有沙盒内存缓存)和本地加载,使用非常简单。@interfaceDCPicScrollView:UIView//占位图片@property(nonatomic,strong)