开发者

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


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

promotionPicture.image = [UIImage imageWithData:responseData];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜