How can I set image to UIImage object. For example:
UIImage
UIImage *img = [[UIImage alloc] init]; [img setImage:[UIImage imageNamed:@\"anyImageName\"]]
Create a UIImageView and add UIImage to it:
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image Name"]] ;
Then add it to your view:
[self.view addSubView: imageView];