Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. _fireIcon = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"flame_icon.png"]];
  2.  
  3. _fireIcon.image = [UIImage imageNamed:@"flame_icon.png"]; // or [_fireIcon setImage:[UIImage imageNamed:@"flame_icon.png"]];
  4.  
  5. _fireIcon = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"flame_icon.png"]];
  6.  
  7. _fireIcon.image = [UIImage imageNamed:@"flame_icon.png"];
  8.  
  9. [myImage setImage:[UIImage imageNamed:@"5.jpg"]];
  10.  
  11. NSBundle *bundle = [NSBundle bundleForClass:[self class]];
  12. UIImage *image = [UIImage imageNamed:@"image" inBundle:bundle compatibleWithTraitCollection:nil];
  13. UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement