How can I change the default color of the button on iPhone?

后端 未结 5 1817
终归单人心
终归单人心 2020-12-23 23:13

How can I change the default color of the button on iPhone?

5条回答
  •  抹茶落季
    2020-12-24 00:09

    Assuming you mean UIButton, you can only change the title color using setTitleColor:forState:.

    You can't change the background color or the shape. You have to create your own control for that.

提交回复
热议问题