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

软件随想录

软件随想录

Joel Spolsky / 阮一峰 / 人民邮电出版社 / 2009 / 49.00元

《软件随想录:程序员部落酋长Joel谈软件》是一部关于软件技术、人才、创业和企业管理的随想文集,作者以诙谐幽默的笔触将自己在软件行业的亲身感悟娓娓道来,观点新颖独特,内容简洁实用。全书分为 36讲,每一讲都是一个独立的专题。 《软件随想录:程序员部落酋长Joel谈软件》从不同侧面满足了软件开发人员、设计人员、管理人员及从事软件相关工作的人员的学习与工作需要。一起来看看 《软件随想录》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

MD5 加密
MD5 加密

MD5 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具