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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -