|
|||
|
First a UIImage needs to be made, to make one with an image from the application bundle use this code:
Code:
UIImage *myImage = [ UIImage imageNamed: @"myImage.png" ]; More info can be found about this technique here: One line UIImage from URL Code:
UIImage *myImage = [UIImage imageWithData: [NSData dataWithContentsOfURL: [NSURL URLWithString: @"http://img.youtube.com/vi/OhOahwZCO1s/2.jpg"]]]; Code:
UIImageView *myImageView = [ [ UIImageView alloc ] initWithImage: myImage ]; Max |
![]() |
| Thread Tools | |
| Display Modes | |
|
|