UIButton Text Margin / Padding

后端 未结 9 1131
名媛妹妹
名媛妹妹 2021-01-31 13:39

I have the following layout, and I\'m trying to add a padding to the left and right..

The controls are a disabled UIButton.

9条回答
  •  梦毁少年i
    2021-01-31 13:55

    Setting the content insets will prevent the UIButton's title to shrink or truncated, giving the text margin a padding.

提交回复
热议问题