Is it possible to adjust x,y position for titleLabel of UIButton?

前端 未结 5 676
野趣味
野趣味 2021-01-29 18:25

Is it possible to adjust the x,y position for the titleLabel of a UIButton?

Here is my code:

    UIButton *btn = [UIButton but         


        
5条回答
  •  情歌与酒
    2021-01-29 18:35

    This can be done in xib. Select your button, go to "Show the Size Inspector" tab and setup insets.

提交回复
热议问题