Swift block
Healp 类方法里
import UIKit class Healp: NSObject { class func stringblock(title:String, blockp:(_ backMes : String) ->() ){ blockp(title) } }
调用
Healp .stringblock(title: "sss") { (backBlock) -> () in print("backBlock===",backBlock) }
实例方法前边不带class 类方法带
有疑问可以联系我哦 1165300131