Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
based on NSURLConnection, has blocks, pause/resume, progress
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ASyncURLConnection.h
ASyncURLConnection.m
README.md

README.md

ASyncURLConnection class

Example:

NSString *comboUrl = @"http://support.apple.com/downloads/DL1484/en_US/MacOSXUpdCombo10.7.3.dmg"; AsyncURLConnection *aConnection = [AsyncURLConnection request:comboUrl completeBlock:^(NSData *data, NSString *url) { [data writeToFile:filename atomically:NO]; } errorBlock:^(NSError *error) { NSLog(@"Error %f", error); } progress:^(float progress) { NSLog(@"progress %f", progress); dispatch_async(dispatch_get_main_queue(), ^{ /* update UI on Main Thread */ }); }];


Details

Version 1.1

License BSD

Author Vladimir Boichentsov

More details:

http://www.developers-life.com/asyncurlconnection-with-pauseresume-and-progress-blocks.html

Have fun while using and extending this package.

Something went wrong with that request. Please try again.