代码改变世界

swift selector写法

2017-12-19 17:45  dengchaojie_learner  阅读(211)  评论(0编辑  收藏  举报

  #selector(xiuGaiNote(_:))

 

    @objc func xiuGaiNote(_ note:Notification) -> Void {

        let dic = note.userInfo

        indexPath = dic!["indexPath"] as! IndexPath

        xiuGai()

        

    }