iphone - How can i set the title of UIButton in front of the UIButton image -
i use [button setimage:image forstate:0];
set image uibutton.
then want title of using [button settitle:[titlearray objectatindex:i] forstate:0];
.
but image cover title want show in front of image.
any solution?
thanks!
use setbackgroundimage:forstate instead. when use (foreground) image, dont set title.
Comments
Post a Comment