|
@@ -38,30 +38,30 @@ NS_ASSUME_NONNULL_BEGIN
|
|
*/
|
|
*/
|
|
@interface UIButton (AFNetworking)
|
|
@interface UIButton (AFNetworking)
|
|
|
|
|
|
-<<<<<<< 1bfb8495a47f037560cc2c13302b70c4d58bb50b
|
|
|
|
-///----------------------------
|
|
|
|
-/// @name Accessing Image Cache
|
|
|
|
-///----------------------------
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- The image cache used to improve image loading performance on scroll views. By default, `UIButton` will use the `sharedImageCache` of `UIImageView`.
|
|
|
|
- */
|
|
|
|
-+ (id <AFImageCache>)sharedImageCache;
|
|
|
|
|
|
+///------------------------------------
|
|
|
|
+/// @name Accessing the Image Downloader
|
|
|
|
+///------------------------------------
|
|
|
|
|
|
/**
|
|
/**
|
|
- Set the cache used for image loading.
|
|
|
|
-
|
|
|
|
- @param imageCache The image cache.
|
|
|
|
|
|
+ Set the shared image downloader used to download images.
|
|
|
|
+<<<<<<< b4f8a67ba4dabf3e3365512f70fc0a83644ed21c
|
|
|
|
+ @param imageDownloader The shared image downloader used to download images.
|
|
*/
|
|
*/
|
|
-+ (void)setSharedImageCache:(__nullable id <AFImageCache>)imageCache;
|
|
|
|
=======
|
|
=======
|
|
|
|
+
|
|
|
|
+ @param imageDownloader The shared image downloader used to download images.
|
|
|
|
+*/
|
|
|
|
+>>>>>>> Added documentation
|
|
+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader;
|
|
+ (void)setSharedImageDownloader:(AFImageDownloader *)imageDownloader;
|
|
->>>>>>> - Removed support for NSURLConnection based API's
|
|
|
|
|
|
|
|
-///------------------------------------
|
|
|
|
-/// @name Accessing Response Serializer
|
|
|
|
-///------------------------------------
|
|
|
|
|
|
+/**
|
|
|
|
+ The shared image downloader used to download images.
|
|
|
|
+ */
|
|
|
|
++ (AFImageDownloader *)sharedImageDownloader;
|
|
|
|
+<<<<<<< b4f8a67ba4dabf3e3365512f70fc0a83644ed21c
|
|
|
|
|
|
|
|
+=======
|
|
|
|
+>>>>>>> Added documentation
|
|
|
|
|
|
///--------------------
|
|
///--------------------
|
|
/// @name Setting Image
|
|
/// @name Setting Image
|
|
@@ -101,19 +101,19 @@ NS_ASSUME_NONNULL_BEGIN
|
|
@param state The control state.
|
|
@param state The control state.
|
|
@param urlRequest The URL request used for the image request.
|
|
@param urlRequest The URL request used for the image request.
|
|
@param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes.
|
|
@param placeholderImage The image to be set initially, until the image request finishes. If `nil`, the button will not change its image until the image request finishes.
|
|
|
|
+<<<<<<< b4f8a67ba4dabf3e3365512f70fc0a83644ed21c
|
|
@param success A block to be executed when the image request operation finishes successfully. This block has no return value and takes two arguments: the server response and the image. If the image was returned from cache, the response parameter will be `nil`.
|
|
@param success A block to be executed when the image request operation finishes successfully. This block has no return value and takes two arguments: the server response and the image. If the image was returned from cache, the response parameter will be `nil`.
|
|
@param failure A block object to be executed when the image request operation finishes unsuccessfully, or that finishes successfully. This block has no return value and takes a single argument: the error that occurred.
|
|
@param failure A block object to be executed when the image request operation finishes unsuccessfully, or that finishes successfully. This block has no return value and takes a single argument: the error that occurred.
|
|
|
|
+=======
|
|
|
|
+ @param success A block to be executed when the image data task finishes successfully. This block has no return value and takes two arguments: the server response and the image. If the image was returned from cache, the request and response parameters will be `nil`.
|
|
|
|
+ @param failure A block object to be executed when the image data task finishes unsuccessfully, or that finishes successfully. This block has no return value and takes three arguments: the request sent from the client, the response received from the server, and the error object describing the network or parsing error that occurred.
|
|
|
|
+>>>>>>> Added documentation
|
|
*/
|
|
*/
|
|
- (void)setImageForState:(UIControlState)state
|
|
- (void)setImageForState:(UIControlState)state
|
|
withURLRequest:(NSURLRequest *)urlRequest
|
|
withURLRequest:(NSURLRequest *)urlRequest
|
|
placeholderImage:(nullable UIImage *)placeholderImage
|
|
placeholderImage:(nullable UIImage *)placeholderImage
|
|
-<<<<<<< 1bfb8495a47f037560cc2c13302b70c4d58bb50b
|
|
|
|
- success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * __nullable response, UIImage *image))success
|
|
|
|
- failure:(nullable void (^)(NSError *error))failure;
|
|
|
|
-=======
|
|
|
|
- success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success
|
|
|
|
|
|
+ success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
|
|
failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
|
|
failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
|
|
->>>>>>> - Removed support for NSURLConnection based API's
|
|
|
|
|
|
|
|
|
|
|
|
///-------------------------------
|
|
///-------------------------------
|
|
@@ -160,13 +160,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
- (void)setBackgroundImageForState:(UIControlState)state
|
|
- (void)setBackgroundImageForState:(UIControlState)state
|
|
withURLRequest:(NSURLRequest *)urlRequest
|
|
withURLRequest:(NSURLRequest *)urlRequest
|
|
placeholderImage:(nullable UIImage *)placeholderImage
|
|
placeholderImage:(nullable UIImage *)placeholderImage
|
|
-<<<<<<< 1bfb8495a47f037560cc2c13302b70c4d58bb50b
|
|
|
|
- success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * __nullable response, UIImage *image))success
|
|
|
|
- failure:(nullable void (^)(NSError *error))failure;
|
|
|
|
-=======
|
|
|
|
- success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success
|
|
|
|
|
|
+ success:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, UIImage *image))success
|
|
failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
|
|
failure:(nullable void (^)(NSURLRequest *request, NSHTTPURLResponse * _Nullable response, NSError *error))failure;
|
|
->>>>>>> - Removed support for NSURLConnection based API's
|
|
|
|
|
|
|
|
|
|
|
|
///------------------------------
|
|
///------------------------------
|