Guest User

Untitled

a guest
May 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
  2. [self.activeDownload appendData:data];
  3. }
  4.  
  5. - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
  6. // Clear the activeDownload property to allow later attempts
  7. self.activeDownload = nil;
  8.  
  9. // Release the connection now that it's finished
  10. self.imageConnection = nil;
  11. }
  12.  
  13. - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
  14. // Set appIcon and clear temporary data/image
  15. UIImage *image = [[UIImage alloc] initWithData:self.activeDownload];
  16.  
  17. //MAKE Your callbacks and update the image here.
  18. }
Add Comment
Please, Sign In to add comment