1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| #import <Foundation/Foundation.h> @class GCNetworkFetcher;
@protocol GCNetworkFetcherDelegate <NSObject>
@optional - (void)networkFetcher:(GCNetworkFetcher *)fetcher didReceiveData:(NSData *)data; - (void)networkFetcher:(GCNetworkFetcher *)fetcher didFaileWithError:(NSError *)error; - (void)networkFetcher:(GCNetworkFetcher *)fetcher didUpdateProgressTo:(float)progress;
@end
@interface GCNetworkFetcher : NSObject
@property (nonatomic, weak) id<GCNetworkFetcherDelegate>delegate;
@end
|