Guest User

Untitled

a guest
Jun 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. UIButton *btn = [[UIButton alloc] init];
  2. UIImage *img = [UIImage imageNamed:@"image.png"];
  3. [btn setImage:img forState:UIControlStateNormal]
  4. //No need to release img. It is autoreleased!!!
Add Comment
Please, Sign In to add comment