Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1861 from realestate-com-au/fix/unneeded-import

Remove unnecessary imports in UIImageView & UIWebView+AFNetworking headers
  • Loading branch information...
commit 21e2280e768b053297ceaf740a897e8d6f56fd10 2 parents 5a6ad27 + cf01b18
Mattt Thompson mattt authored
4 UIKit+AFNetworking/UIImageView+AFNetworking.h
View
@@ -28,9 +28,9 @@
#import <UIKit/UIKit.h>
-#import "AFURLResponseSerialization.h"
+@protocol AFURLResponseSerialization, AFImageCache;
-@protocol AFImageCache;
+@class AFImageResponseSerializer;
/**
This category adds methods to the UIKit framework's `UIImageView` class. The methods in this category provide support for loading remote images asynchronously from a URL.
4 UIKit+AFNetworking/UIWebView+AFNetworking.h
View
@@ -28,8 +28,8 @@
#import <UIKit/UIKit.h>
-#import "AFURLRequestSerialization.h"
-#import "AFURLResponseSerialization.h"
+@class AFHTTPRequestSerializer, AFHTTPResponseSerializer;
+@protocol AFURLRequestSerialization, AFURLResponseSerialization;
/**
This category adds methods to the UIKit framework's `UIWebView` class. The methods in this category provide increased control over the request cycle, including progress monitoring and success / failure handling.
2  UIKit+AFNetworking/UIWebView+AFNetworking.m
View
@@ -27,6 +27,8 @@
#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
#import "AFHTTPRequestOperation.h"
+#import "AFURLResponseSerialization.h"
+#import "AFURLRequestSerialization.h"
@interface UIWebView (_AFNetworking)
@property (readwrite, nonatomic, strong, setter = af_setHTTPRequestOperation:) AFHTTPRequestOperation *af_HTTPRequestOperation;
Please sign in to comment.
Something went wrong with that request. Please try again.