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];
精彩评论