1

I have this UIButton but the insets are not on the image so the button can be activated if the user taps outside the bounds of the image but inside the insets.

UIButton

How do I fit the image correctly using Interface Builder?

Thank you

note: with rectangular buttons works great but not rounded squared for some reason...

Janmenjaya
  • 4,149
  • 1
  • 23
  • 43
masaldana2
  • 635
  • 9
  • 20
  • Try it, maybe helpful. http://stackoverflow.com/questions/25207927/setting-a-uitableviews-contentinset-through-storyboard-in-xcode-6 – nynohu Oct 18 '16 at 02:22
  • Try following link : http://stackoverflow.com/questions/32365521/align-button-image-to-right-edge-of-uibutton?answertab=votes#tab-top – KKRocks Oct 18 '16 at 05:43

2 Answers2

0

you should add the picture name in the arrow location: enter image description here

Community
  • 1
  • 1
fzh
  • 688
  • 1
  • 6
  • 14
0

Duh! I had a subtle "drop shadow" on my button style so I deactivated and now it scales good :)

masaldana2
  • 635
  • 9
  • 20