ALButton UIButton 子类

程序名称:ALButton

授权协议: MIT

操作系统: iOS

开发语言: Swift

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")

ALButton 官网

https://github.com/al7/ALButton

相关编程语言

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