UIButton : setImage:forState vs. setBackgroundImage:forState
The UIButton documentation does not tell you what are the differences between these two methods.
Experimenting uncovers one interesting difference: if you change the button’s frame, background images follow the size change, while images keep their original size.
Take your pick.
Advertisement
leave a comment