[self performSelectorOnMainThread:@selector(didLoadImageInBackground:) withObject:image waitUntilDone:YES];

 

– (void)didLoadImageInBackground:(UIImage *)image {
[currentImage setImage: image];
}

 

Advertisements