本项目基于 Michael Villar 优秀的运动实验帖子。他设计了一个图像加载动画,该动画显示一个圆形进度指示器,然后在一个扩展的圆形环中揭露图像。
有关动画的详细说明,请访问 raywenderlich.com。
#import <UIImageView+RJLoader.h>
//before starting
[self.imageView startLoader];
//to change the color of the indicator, use the startLoaderWithTintColor: method
//update progress
[self.imageView updateImageDownloadProgress:progress];
//after completion
[self.imageView reveal];
要运行示例项目,首先克隆仓库,然后从 Example 目录运行 pod install
。
Rounak Jain。
关注我的 Twitter @r0unak
RJImageLoader 适用于 MIT 许可。有关更多信息,请参阅 LICENSE 文件。