开发者

Load image from plist

I am trying to开发者_Go百科 input the link of the image on one of the plist <string>. What code should I add in to the implementation in order to load the image from that website and display in an UIImage?


This should work:

NSData *imgData = [[NSData alloc] initWithContentsOfURL:urlFromPlist];
UIImage *img = [UIImage imageWithData:imgData];
[img drawInRect:someRect];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜