How can I set image to UIImage
object.
For example:
UIImage *img = [[UIImage alloc] init];
[img setImage:[UIImage imageNamed:@"anyImageName"]];
My UIImage
object is declared in .h
file and allocated in init
method, I need to set image in viewDidLoad
method.
Any ideas?