lukagabric/LASIImageView
Sobre
Uma subclasse de UIImageView para iOS que baixa imagens com diferentes indicadores de progresso.
Desenvolvimento web e de aplicativosCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalLASIImageView
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)
Explore projetos relacionados
Carregando…
