- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 Swift 闭包的使用
在二级页面创建闭包class DetailViewController: UIViewController {// 定义闭包 typealias callBlock = (_ index:Int)->() // 无参数闭包的定义 typealias otherBlock = ()->() // 设置闭包属性 var sendValueBlock:callBlock! var nonePa
2017-07-07 17:23:00 170
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人