storyboard positioning text below image inside a button

前端 未结 8 1181
野趣味
野趣味 2021-02-01 13:13

I am able to set the image and text for button. But it is aligned horizontally. I want the image and text to be aligned vertically inside the button. i.e., text below the image<

8条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 13:55

    If you are looking for output like this

    1) Select button and go to Attribute Inspector in your storyboard to get this result of Button size 50*50

    2) Now set Title Insets of Button

提交回复
热议问题