UIButton 子类 ALButton
- 授权协议: MIT
- 开发语言: Swift
- 操作系统: iOS
- 软件首页: https://github.com/al7/ALButton
软件介绍
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")Types and Programming Languages
Benjamin C. Pierce / The MIT Press / 2002-2-1 / USD 95.00
A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. The study of typ......一起来看看 《Types and Programming Languages》 这本书的介绍吧!
