-1

I want my titleLabel text move a little down on button tap (i.e. I want to give different inset values for highlighted and default states).

I have custom button background images and the button goes down in highlighted state image but the text on it stands at the same place so it gives a bad effect and looks like the text is seperated from button.

Is there any way to solve this?

Thanks in advance

Ali Aksakarya
  • 471
  • 4
  • 11

1 Answers1

2

The easiest way to do this is to put your text on the button's background image.

If you can't do that for some reason you can try to add IBAction on Button down and adjust button.titleLabel.frame.

BryanH
  • 5,826
  • 3
  • 34
  • 47
wirrwarr
  • 265
  • 1
  • 14