TintingButton UIButton 子类

程序名称:TintingButton

授权协议: MIT

操作系统: iOS

开发语言: Swift

TintingButton 介绍

TintingButton 是 UIButton 的子类,利用 tintColor 和 UIImage 渲染模式。

All Colored mode

[

let btnShare = TintingButton(completelyTintedWith: .whiteColor(), activeTintColor: .greenColor())
btnShare.setimage(imageShare, forState: UIControlState.normal)
btnShare.setTitle(title, forState: UIControlState.normal)

Title Image Colored mode

[

let btnShare = TintingButton(titleAndImageTintedWith: whiteColor(), activeTintColor: .greenColor())
btnShare.setimage(imageShare, forState: UIControlState.normal)
btnShare.layer.borderColor = .grayColor().CGColor
btnShare.layer.borderWidth = 1
btnShare.setTitle(title, forState: UIControlState.normal)

TintingButton 官网

https://github.com/Dominoo/TintingButton

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...