项目
在 GitHub 查看
lukagabric/LASIImageView
关于
一个 iOS UIImageView 子类,可下载图像并显示不同的进度指示器。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文LASIImageView
iOS UIImageView subclass - download image with different progress indicators
Screenshots
How to use
Just add LASIImageView class files to the project and set the imageUrl property to download and display the image.
Progress indicator types
Three types of progress indicators are available (as in the screenshot above):
- LProgressTypeAnnular
- LProgressTypeCircle
- LProgressTypePie
Appearance
It is possible to set shared appearance. Setting appearance for particular LASIImageView instance will override global appearance.
[[LASIImageView sharedProgressAppearance] setSchemeColor:[UIColor whiteColor]];
[[LASIImageView sharedASIImageViewAppearance] setDownloadFailedImageName:@"downloadFailed.png"];
Request settings
@property (assign, nonatomic) ASICachePolicy cachePolicy;
@property (assign, nonatomic) ASICacheStoragePolicy cacheStoragePolicy;
@property (weak, nonatomic) id <ASICacheDelegate> cacheDelegate;
@property (assign, nonatomic) NSUInteger secondsToCache;
@property (assign, nonatomic) NSUInteger timeOutSeconds;
Blocks
On request finished - success or fail blocks are called (LASIImageViewDownloadFinishedBlock or LASIImageViewDownloadFailedBlock)
探索相关项目
加载中…
