EasyResponder
总结
您的页面上是否有像图标所示的多层用户操作传值困惑?
- 委托?
- 块?
- 通知?
- ???
本仓库借助UIRespondChain,直接将以EasyEvent形式在RespondChain中传递用户操作事件。
从此不再困惑点击事件应该使用delegate还是block了。
示例
let btn = UIButton(type: .custom)
btn.transferEasyEventWithIdentifier("foo_id", for: .touchUpInside)
要求
iOS 9.0
Swift 5.0
安装
pod 'EasyResponder'
作者
许允是, [email protected]