imageWithData:completion:

Asynchronously generate an image from the given data. If an image could not be generated, the completion will be called with nil.

Declaration

- (void) imageWithData:(NSData *) data completion:(void (^)(UIImage *)) completion;