先把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"
先把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"
转载于:https://www.cnblogs.com/qiyazong/p/7358501.html