44问答网
所有问题
如何让button的背景为透明的,而button上面的文字是显示出来的
如题所述
举报该问题
推荐答案 2016-12-02
代码改这样设一下的话可以实现,而且不会很麻烦:
UIButton 设置类型为UIButtonTypeCustom
setTitleColor 可以设置button上文字的颜色,
backgroundColor设置为clearColor就可以实现button透明文字不透明
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://44.wendadaohang.com/zd/DGZWGZVDKW3ZVYVZWG.html
相似回答
大家正在搜
相关问题
如何让button按钮变成透明
如何让button的背景为透明的,而button上面的文字是...
怎么让button按钮上的文字完整显示出来
如何让button的背景为透明的,而button上面的文字是...
如何让button的背景为透明的,而button上面的文字是...
如何让button的背景为透明的,而button上面的文字是...
如何将JButton的背景设置为透明