Commit graph

39 commits

Author SHA1 Message Date
Mattt Thompson
9adb586a82 [Issue #308] Fixing crash caused by attempting to cache invalid or nil image 2012-04-19 10:31:45 -05:00
John Wu
ec3b922288 since there is no guarantee that
cancelling a request => success/fail block will not be called,
you shouldn't nil out a request unless it corresponds to the correct URL.
Essentially, this fixes the problem where images are sometimes not loaded.
2012-04-13 11:04:13 -07:00
Mattt Thompson
14aea9ee58 [Issue #268] Reverting to cacheing UIImages rather than NSPurgeableData-wrapped image data 2012-04-08 14:26:52 -07:00
Mattt Thompson
f8fd95e26a Refactoring UIImageView+AFNetworking to remove unused aspects of AFImageCache, and to prevent unexpected or incorrect cacheing behavior 2012-02-14 09:12:19 -08:00
Mattt Thompson
df21de7e63 Merge branch 'experimental-thread-safe' into experimental-0.9
Conflicts:
	AFNetworking/AFURLConnectionOperation.m
2012-01-19 16:55:00 -08:00
Mattt Thompson
3ff5aafab7 Removing AFImageCache from public API, embedding it instead in UIImageView+AFNetworking implementation 2012-01-19 11:58:17 -08:00
Mattt Thompson
1c606919fc UIImageView shouldn't set image to placeholder image whenever an old image request comes in 2011-12-08 12:43:39 -06:00
Cameron Boehmer
6415cade69 in UIImageView+AFNetworking, calling net request success callback after setting UIImageView.image (symmetrical with cached image retrieval/callback) 2011-11-29 17:26:33 -08:00
Mattt Thompson
1f750a36fe Removing useless check for cache policy before cacheing images in success callback 2011-11-21 12:44:32 -06:00
Mattt Thompson
97191228e0 Fixing default cache policy for URL requests objects in UIImageView category 2011-11-21 12:42:08 -06:00
Mattt Thompson
c466a24ae2 Fixing UIImageView category to work with AFImageRequestOperation refactoring 2011-11-21 10:40:09 -06:00
Mattt Thompson
58693e8d8c Updating and revising documentation 2011-11-11 11:28:05 -06:00
Mattt Thompson
e9855af89d Fixing race condition in UIImageView category with cached images. Thanks @iwat (Chaiwat S.) 2011-10-11 17:07:27 -05:00
Mattt Thompson
358ecb568c Merge branch 'experimental-0.7' into experimental-mac
Conflicts:
	AFNetworking/AFHTTPRequestOperation.m
	AFNetworking/AFImageRequestOperation.h
	AFNetworking/AFImageRequestOperation.m
	AFNetworking/AFNetworkActivityIndicatorManager.m
2011-10-11 10:01:44 -05:00
Mattt Thompson
80a0c65608 Merge branch 'master' into experimental-mac
Conflicts:
	AFNetworking/AFNetworkActivityIndicatorManager.m
	iOS Example/AFNetworking iOS Example.xcodeproj/project.pbxproj
2011-10-11 09:58:00 -05:00
Mattt Thompson
b7724922c4 Refactoring image request operation 2011-10-10 13:06:12 -05:00
Mattt Thompson
263e2f3d5c [Issue #59] Removing unnecessary dispatch in UIImageView category 2011-10-10 10:04:57 -05:00
Mattt Thompson
c2be31d4fa First implementation of protocol for AFHTTPClient to register classes to automatically determine the appropriate operation to create
Wrapping AFURLConnectionOperation -setCompletionBlock: with blockSelf release pattern to avoid retain cycle
2011-10-05 15:44:51 -05:00
Mattt Thompson
561df45eb7 Initial working implementation of new candidate class structure 2011-10-04 00:13:12 -05:00
Mattt Thompson
421032fe90 Removing logic to set UIImageView image cache name based on placeholder image dimensions
Renaming constant used to associate category objects in UIImageView category
2011-09-26 11:03:33 -05:00
Mattt Thompson
e1f7528a09 Removing strangely intrusive logic to resize an image to placeholder image size 2011-09-26 08:48:04 -05:00
Mattt Thompson
efdaedc541 Adding Mac example project
Renaming iOS example project

Adding AFNetworking to Mac project using preprocessor macros to resolve UIKit dependencies, and setting compiler flags accordingly.
2011-09-23 12:19:40 -05:00
Mattt Thompson
42da37a5a3 Namespacing private methods in UIImageView category 2011-09-22 11:42:48 -05:00
Mattt Thompson
eebc763f7f Adding documentation to UIImageView category
Changing API for setImageWithURLRequest:placeholderImage:success to setImageWithURLRequest:placeholderImage:success:failure
2011-09-22 11:30:13 -05:00
Mattt Thompson
2a8cce88a5 Changing AFImageCache APIs to use URLs rather than NSURLRequests
Completing documentation for AFImageCache
2011-09-21 23:46:00 -05:00
Mattt Thompson
e7aba7d47a Making most explicit UIImageView image setting method take NSURLRequest, to allow for overriding cache policy, timeout interval, and other request properties 2011-09-21 17:13:20 -05:00
Mattt Thompson
3b81cd32a7 Fixing optimization to not re-initiate duplicated calls to a UIImageView, by adding missing check to see if the last operation was cancelled 2011-09-21 15:50:22 -05:00
Mattt Thompson
f422cafe14 Removing UIImage category in favor of static function to resize images in UIImageView category implementation 2011-09-21 14:32:30 -05:00
Mattt Thompson
50014afa22 Refactoring image request API to remove unnecessary configuration, and focus the design goals of those classes 2011-09-16 22:40:52 -05:00
Mattt Thompson
76d9b2bfc8 Adding -cancelImageRequestOperation to UIImageView category
Improving performance of UIImageView -setImageWithURL:... by cancelling running operation if new image url request is different than passed url request
2011-09-15 14:29:29 -05:00
Peter Steinberger
1ec54e2595 add BOOL if cache was used to load image
This is useful for animation - if function directly returns, there's no need to animate the new image
2011-09-12 17:36:20 +02:00
Peter Steinberger
908d77aaaf execute custom block _before_ setting image
This is particularly useful if you want to animate the image change, e.g. with a core animation block - that's not possible after image is changed.
2011-09-12 17:20:50 +02:00
Peter Steinberger
bd6fc88c01 allow imageRequestOperation to be cancelled 2011-09-12 17:19:57 +02:00
Mattt Thompson
b734a64add Execute block passed into UIImageView request if getting an image out of the cache 2011-08-14 19:48:31 -05:00
Mattt Thompson
1dad3cb336 Adding method, adding a callback for when image was loaded. This fixes a shortcoming where images loaded into UITableViewCells wouldn't show up until being recycled, needing to layout its subviews 2011-08-05 10:41:20 -05:00
Mattt Thompson
9a2b90c698 Adding explicit cast for associated image request operation object in UIImageView category 2011-08-03 13:02:47 -05:00
Mattt Thompson
d4e34f76bf Adding #imports for Foundation and obj-c runtime 2011-08-03 13:00:40 -05:00
Mattt Thompson
4ac2f407d7 Removing code to try and be clever about cancelling image requests or not for a instances of the same image being requested
Adding HTTP pipelining to image requests
2011-08-03 11:32:22 -05:00
Mattt Thompson
f169a93f58 Moving AFNetworking classes into correct directory 2011-07-27 15:20:37 -05:00
Renamed from Example/UIImageView+AFNetworking.m (Browse further)