随意改变按钮文字图片颜色
2020-12-15 本文已影响0人
BabyNeedCare
记录一下, 有个需求是更换按钮文字, 图片颜色, 随机色
UIButtonType里头有个UIButtonTypeSystem我们把创建方式改成[UIButton buttonWithType:UIButtonTypeSystem];
然后修改UIButton的tintColor.就可以改变图片的颜色了.
记录一下, 有个需求是更换按钮文字, 图片颜色, 随机色
UIButtonType里头有个UIButtonTypeSystem我们把创建方式改成[UIButton buttonWithType:UIButtonTypeSystem];
然后修改UIButton的tintColor.就可以改变图片的颜色了.