swift3 selector传递参数问题
var index = 12
let pan = #selector(self.delimg( index : ) )
let guest = UITapGestureRecognizer(target: self, action: pan)
func delimg(index : Int){ print("(index)") }
这样为什么拿不到参数 需要怎么操作
var index = 12
let pan = #selector(self.delimg( index : ) )
let guest = UITapGestureRecognizer(target: self, action: pan)
func delimg(index : Int){ print("(index)") }
这样为什么拿不到参数 需要怎么操作
2016-11-04
举报