UIButton 子类 ALButton

码农软件 · 软件分类 · 按钮(Button) · 2019-05-22 22:13:26

软件介绍

ALButton 是 UIButton 的子类,添加了一些功能,减少 UIButton 自定义外观和行为的行数,并且添加了一些 Swfit 的优势。

三种初始化方式:

//- 1. Full Initialization
let style = ALButton.ButtonStyle()
//-- set style
let myButton = ALButton(title: "Button Title", style: style, touchUpInsideHandler: {
    (sender ) in
    //-- Implement touch up inside event here
})
//- 2. Simple initialization with style:
var style = ALButton.ButtonStyle()
//-- set style
let myButton = ALButton(title: "Button Title", style: style)
//- 3. Short initialization
let myButton = ALButton(title: "Button Title")


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

The Nature of Code

The Nature of Code

Daniel Shiffman / The Nature of Code / 2012-12-13 / GBP 19.95

How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital w......一起来看看 《The Nature of Code》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换