/NSURLConnection-Compatibility

Drop-in replacement for iOS 5’s [NSURLConnection sendAsynchronousRequest:queue:completionHandler:] method for iOS 4.x (and earlier).

Primary LanguageObjective-CMIT LicenseMIT

NSURLConnection+Compatibility

Drop-in replacement for iOS 5’s [NSURLConnection sendAsynchronousRequest:queue:completionHandler:] method for iOS 4.x (and earlier).

Will use the built-in method on iOS and falls back to the custom implementation if sendAsynchronousRequest is not available.

Usage

#import "NSURLConnection+Compatibility.h"

...


[NSURLConnection as_sendAsynchronousRequest:request queue:_operationQueue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
	
	...
	
}];