user567
user567

Reputation: 3842

How to PUT image downloaded with ASIHTTPrequest in a UIImageView

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

Answers (1)

Jacob Relkin
Jacob Relkin

Reputation: 163228

I believe you'll need to wrap the NSData in a UIImage:

promotionPicture.image = [UIImage imageWithData:responseData];

Upvotes: 5

Related Questions