Coloration of UIButtons of type UIButtonTypeRoundedRect

后端 未结 4 1295
闹比i
闹比i 2021-01-19 14:38

I would like the rounded rectangle portion of the subject type of UIButton to be a solid custom color I specify. I understand that

. setTitleColor : changes the tex

4条回答
  •  被撕碎了的回忆
    2021-01-19 15:32

    I think that the easiest way to do this would just be to create a solid rounded button png image of your own, with transparencies around the rounded corners.

    Then just set the background of your custom button to be that image that you created.

    Other than that, I don't actually think that this is can be done...Not sure...

提交回复
热议问题