Reputation: 3842
i want to display an image downloaded with ASIHTTPrequest in a UIIamgeView . I tried this :
NSData *responseData = [request responseData];
promotionPicture.image = responseData;
But don't work , incompatible type ... help Please
Upvotes: 1
Views: 995
Reputation: 163228
I believe you'll need to wrap the NSData
in a UIImage
:
promotionPicture.image = [UIImage imageWithData:responseData];
Upvotes: 5