UIButton-BackgroundColor:UIButton的类别或扩展名,用于将纯背景色设置为背景图像

时间:2021-05-19 05:31:43
【文件属性】:
文件名称:UIButton-BackgroundColor:UIButton的类别或扩展名,用于将纯背景色设置为背景图像
文件大小:45KB
文件格式:ZIP
更新时间:2021-05-19 05:31:43
Shell UIButton + BackgroundColor UIButton的类别或扩展名,用于将纯背景色设置为背景图像。 安装 可可豆 将此添加到您的Podfile pod 'UIButton+BackgroundColor' 用法 导入 ,然后可以使用以下命令为您的UIButton设置带有状态的背景色: [ self .blueButton setBackgroundColor: [UIColor blueColor ] forState: UIControlStateNormal]; 您还可以设置UIButton背景色默认外观 [[UIButton appearance ] setBackgroundColor: [UIColor blueColor ] forState: UIControlStateNormal]; 接触
【文件预览】:
UIButton-BackgroundColor-master
----UIButton+BackgroundColor()
--------UIButton+BackgroundColor.m(460B)
--------UIImage+Color.h(207B)
--------UIButton+BackgroundColor.h(347B)
--------UIImage+Color.m(605B)
----Demo()
--------UIButtonBackgroundColorDemo()
--------UIButtonBackgroundColorDemo.xcodeproj()
--------Pods()
--------Podfile.lock(331B)
--------UIButtonBackgroundColorDemoTests()
--------Podfile(356B)
--------UIButtonBackgroundColorDemo.xcworkspace()
----UIButton+BackgroundColor.podspec(632B)
----LICENSE(1KB)
----README.md(685B)
----.gitignore(837B)

网友评论