Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions AsyncImageView-blocks.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Pod::Spec.new do |s|
s.name = "AsyncImageView-blocks"
s.version = "1.5.1.2"
s.summary = "AsyncImageView is an extension of UIImageView for loading and displaying images asynchronously on iOS so that they do not lock up the UI."

s.description = "AsyncImageView includes both a simple category on UIImageView for loading and displaying images asynchronously on iOS so that they do not lock up the UI, and a UIImageView subclass for more advanced features. AsyncImageView works with URLs so it can be used with either local or remote files.

Loaded/downloaded images are cached in memory and are automatically cleaned up in the event of a memory warning. The AsyncImageView operates independently of the UIImage cache, but by default any images located in the root of the application bundle will be stored in the UIImage cache instead, avoiding any duplication of cached images.

The library can also be used to load and cache images independently of a UIImageView as it provides direct access to the underlying loading and caching classes."

s.homepage = "http://charcoaldesign.co.uk/source/cocoa#asyncimageview"
s.license = { :type => 'zlib', :file => 'LICENCE.md' }
s.author = { 'Fraser Scott-Morrison' => '[email protected]' }
s.source = { :git => "https://github.com/IdleHandsApps/AsyncImageView.git", :tag => s.version.to_s }

s.platform = :ios, '4.3'
s.source_files = 'AsyncImageView'
s.requires_arc = true
end
20 changes: 0 additions & 20 deletions AsyncImageView.podspec

This file was deleted.

6 changes: 6 additions & 0 deletions AsyncImageView/AsyncImageView.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,15 @@ extern NSString *const AsyncImageErrorKey;
@property (nonatomic, assign) NSUInteger concurrentLoads;
@property (nonatomic, assign) NSTimeInterval loadingTimeout;

- (void)loadImageWithURL:(NSURL *)URL successBlock:(void (^)(UIImage *image))successBlock failureBlock:(void(^)(NSError *error))failureBlock; // New method for blocks by Fraser Scott-Morrison
- (void)loadImageWithURL:(NSURL *)URL target:(id)target success:(SEL)success failure:(SEL)failure;
- (void)loadImageWithURL:(NSURL *)URL target:(id)target action:(SEL)action;
- (void)loadImageWithURL:(NSURL *)URL;
- (void)cancelLoadingURL:(NSURL *)URL actionBlock:(void (^)(UIImage *image))successBlock; // New method for blocks by Fraser Scott-Morrison
- (void)cancelLoadingURL:(NSURL *)URL target:(id)target action:(SEL)action;
- (void)cancelLoadingURL:(NSURL *)URL target:(id)target;
- (void)cancelLoadingURL:(NSURL *)URL;
- (void)cancelLoadingImagesForTarget:(id)target actionBlock:(void (^)(UIImage *image))successBlock; // New method for blocks by Fraser Scott-Morrison
- (void)cancelLoadingImagesForTarget:(id)target action:(SEL)action;
- (void)cancelLoadingImagesForTarget:(id)target;
- (NSURL *)URLForTarget:(id)target action:(SEL)action;
Expand All @@ -72,6 +75,7 @@ extern NSString *const AsyncImageErrorKey;

@property (nonatomic, strong) NSURL *imageURL;

- (void)setImageURL:(NSURL *)imageURL successBlock:(void (^)(UIImage *image))successBlock failureBlock:(void(^)(NSError *error))failureBlock; // New method for blocks by Fraser Scott-Morrison
@end


Expand All @@ -81,6 +85,8 @@ extern NSString *const AsyncImageErrorKey;
@property (nonatomic, assign) UIActivityIndicatorViewStyle activityIndicatorStyle;
@property (nonatomic, assign) NSTimeInterval crossfadeDuration;

- (void)setImageURL:(NSURL *)imageURL successBlock:(void (^)(UIImage *image))successBlock failureBlock:(void(^)(NSError *error))failureBlock; // New method for blocks by Fraser Scott-Morrison

@end


Expand Down
Loading