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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…