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
I believe you'll need to wrap the NSData
in a UIImage
:
promotionPicture.image = [UIImage imageWithData:responseData];
精彩评论