Browse files

Remove unnecessary #imports in UIImageView & UIWebView+AFNetworking h…

…eaders.
  • Loading branch information...
1 parent f82489d commit cf01b18d928949a24a3a1a30c4c874be8ad08651 @jessedc jessedc committed Feb 28, 2014
View
4 UIKit+AFNetworking/UIImageView+AFNetworking.h
@@ -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.
View
4 UIKit+AFNetworking/UIWebView+AFNetworking.h
@@ -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.
View
2 UIKit+AFNetworking/UIWebView+AFNetworking.m
@@ -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;

0 comments on commit cf01b18

Please sign in to comment.