123456789101112131415161718192021222324252627282930313233343536373839 |
- #import <UIKit/UIKit.h>
- @protocol NYXProgressiveImageViewDelegate <NSObject>
- @optional
- -(void)imageDidLoadWithImage:(UIImage*)img;
- -(void)imageDownloadCompletedWithImage:(UIImage*)img;
- -(void)imageDownloadFailedWithData:(NSData*)data;
- @end
- @interface NYXProgressiveImageView : UIImageView
- #pragma mark - Public messages
- -(void)loadImageAtURL:(NSURL*)url;
- +(void)resetImageCache;
- #pragma mark - Public properties
- @property (nonatomic, weak) IBOutlet id <NYXProgressiveImageViewDelegate> delegate;
- @property (nonatomic, getter = isCaching) BOOL caching;
- @property (nonatomic) NSTimeInterval cacheTime;
- @property (nonatomic, readonly, getter = isDownloading) BOOL downloading;
- @end
|