UIButton 子类 TintingButton

码农软件 · 软件分类 · 按钮(Button) · 2019-05-22 21:59:19

软件介绍

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)

本文地址:https://codercto.com/soft/d/6332.html

Refactoring

Refactoring

Martin Fowler、Kent Beck、John Brant、William Opdyke、Don Roberts / Addison-Wesley Professional / 1999-7-8 / USD 64.99

Refactoring is about improving the design of existing code. It is the process of changing a software system in such a way that it does not alter the external behavior of the code, yet improves its int......一起来看看 《Refactoring》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

SHA 加密
SHA 加密

SHA 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具