Posted By

code4mac on 02/27/13


Tagged

uiimageview


Versions (?)

change image in UIImageView


 / Published in: Objective C
 

Change everywhere in your viewController, the UIImageView's image

  1. UIImage *image = [UIImage imageNamed:@"image.png"];
  2. if (image != nil)
  3. {
  4. self.backgroundImageView.image = image;
  5. }
  6. else
  7. {
  8. NSLog(@"no image");
  9. }

Report this snippet  

You need to login to post a comment.