UIClosures是用Swift写成的closure库,用于UIKit。
简单示例:
butto.o(.TouchUpIside, (seder: AyObject) -> () { let butto = seder as! UIButto butto.setTitle("Pressed", forCotrolState:.Normal)})
开源地址
https://github.com/carabina/UIClosures授权协议
MIT
UIClosures是用Swift写成的closure库,用于UIKit。
简单示例:
butto.o(.TouchUpIside, (seder: AyObject) -> () { let butto = seder as! UIButto butto.setTitle("Pressed", forCotrolState:.Normal)})
UIClosures 是用 Swift 写成的 closure 库,用于 UIKit。 简单示例:
button.on(.TouchUpInside, (sender: AnyObject)...


评论