swift Tablview中cell 的用withtag方法绑定里面的button
先把viewwithtag取出来
let nameLable = cell.viewWithTag(102) as! UILabel let imageLable = cell.viewWithTag(101) as! UIImageView
然后再给nameLable和imageLable赋值就可以了
imageLable.image = UIImage(named: "img2") nameLable.text = "qiyazong"