Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Nyx0uf
39 lines (31 sloc) 1.067 kb
//
// NYXProgressiveImageView.h
// NYXImagesKit
//
// Created by @Nyx0uf on 13/01/12.
// Copyright 2012 Nyx0uf. All rights reserved.
// www.cocoaintheshell.com
// Caching stuff by raphaelp
//
@protocol NYXProgressiveImageViewDelegate <NSObject>
@optional
-(void)imageDidLoadWithImage:(UIImage*)img;
-(void)imageDownloadCompletedWithImage:(UIImage*)img;
-(void)imageDownloadFailedWithData:(NSData*)data;
@end
@interface NYXProgressiveImageView : UIImageView
#pragma mark - Public messages
/// Launch the image download
-(void)loadImageAtURL:(NSURL*)url;
/// This will remove all cached images managed by any NYXProgressiveImageView instances
+(void)resetImageCache;
#pragma mark - Public properties
/// Delegate
@property (nonatomic, weak) IBOutlet id <NYXProgressiveImageViewDelegate> delegate;
/// Enable / Disable caching
@property (nonatomic, getter = isCaching) BOOL caching;
/// Cache time in seconds
@property (nonatomic) NSTimeInterval cacheTime;
/// Downloading flag
@property (nonatomic, readonly, getter = isDownloading) BOOL downloading;
@end
Jump to Line
Something went wrong with that request. Please try again.