Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
- [self.activeDownload appendData:data];
- }
- - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
- // Clear the activeDownload property to allow later attempts
- self.activeDownload = nil;
- // Release the connection now that it's finished
- self.imageConnection = nil;
- }
- - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
- // Set appIcon and clear temporary data/image
- UIImage *image = [[UIImage alloc] initWithData:self.activeDownload];
- //MAKE Your callbacks and update the image here.
- }
Add Comment
Please, Sign In to add comment