美文网首页
Swift调用OC中的Block

Swift调用OC中的Block

作者: Mr_ZNN | 来源:发表于2018-02-24 00:09 被阅读0次

    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