Swift调用OC中的Block
var customView: CustomView = CustomView()
customView.selectRowAtIndex = { (AnyObject) -> () in
print(AnyObject);
}
//swift里调用总结为
名称 = {(传值)->(返回值) in
}
Swift调用OC中的Block
var customView: CustomView = CustomView()
customView.selectRowAtIndex = { (AnyObject) -> () in
print(AnyObject);
}
//swift里调用总结为
名称 = {(传值)->(返回值) in
}
本文标题:Swift调用OC中的Block
本文链接:https://www.haomeiwen.com/subject/emgxxftx.html
网友评论