辅助按钮
上下文
此库源自于 GodEye 项目,该项目可以一行代码自动显示 Log、Crash、网络、ANR、Leak、CPU、RAM、FPS、网络流量、文件夹等。就像上帝睁开眼睛一样。
示例
要运行示例项目,请克隆仓库,然后从 Example 目录首先运行 pod install
。
安装
CocoaPods
AssistiveButton可以通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中
pod "AssistiveButton"
Carthage
或者,如果您使用的是Carthage,将SwViewCapture添加到您的Cartfile中
github "zixun/AssistiveButton"
使用方法
let frame = CGRect(x: 0, y: 100, width: 48, height: 48)
let btn = AssistiveButton(frame: frame, normalImage: UIImage(named: "test")!)
btn.didTap = { () -> () in
print("abc")
}
self.view.addSubview(btn)
作者
姓名: 陈奕龙
twitter: @zixun_
email: [email protected]
github: zixun
博客: 子循(SubCycle)
授权协议
AssistiveButton遵循MIT授权协议。有关更多信息,请参阅LICENSE文件。