Loading Picture from a Web Page
Monkey Forums/Monkey Programming/Loading Picture from a Web Page
| ||
Has anyone looked at / got code for loading of a JPG/PNG from a web page and displaying it using drawimage ? /StuC |
| ||
for xcode its very simple! just open mojo and search for code with [UIImage] and learn how mojo loads [UIImage] 's This is how you usually do it in xcode UIImage *img = [[UIImage alloc] initWithData: [[NSData alloc] initWithContentsOfURL: [[NSURL alloc] initWithString:@..."]]]; Should be easy to do the rest yourself, if you have questions, just ask |
| ||
Yea I had dipped into the mojo code, I was thinking of extending the loadimage so that it would detect that you were wanting to grab an image from the web. I'll have to find time to look back at it and finish it off (would be mobile devices only) |