Skip to content

An NSURLConnection subclass that implements sendAsynchronousRequest:queue:completionHandler: in iOS 4

Notifications You must be signed in to change notification settings

briancollins/BCURLConnection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

+ (void)sendAsynchronousRequest:(NSURLRequest *)request queue:(NSOperationQueue *)queue completionHandler:(void (^)(NSURLResponse*, NSData*, NSError*))handler

iOS 5 added a new method for sending URL requests using blocks rather than a delegate. Unfortunately it is not 
compatible with iOS 4. This subclass implements that method in iOS 4, or uses the iOS 5 version if available.

This class uses Automatic Reference Counting (ARC). If your project does not use ARC, you can add the flag 
-fobjc-arc to BCURLConnection.m under build phases.

About

An NSURLConnection subclass that implements sendAsynchronousRequest:queue:completionHandler: in iOS 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages