views:

138

answers:

1

When I set up a custom button in Interface Builder it hides the Title text.

Do you have to create the text for the button too or is it possible to change the Z order so that the Title appears on top?

A: 

The title by default appears on the top and in no case the text goes behind the button... Still follow the below steps 1. Drag uibutton to the view 2. Select UIButton 3. Click on the first tab of the Inspector 4. Then Enter the title over there.

The title entered will be on the button.. Hope this helps

Suriya
Your answer would be fine for a standard button. However, if I use a custom button as I mentioned (i.e. use my own PNG) then the PNG appears but I cannot see the Title.
Snow Crash
Well in that case .... I suppos u have set the Image of the button and not the Background Image...Try setting your png file in the Bacground property just below the Image property...
Suriya