How can I customize the accessory disclosure image in a UITableViewCell?

前端 未结 9 582
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 15:55

I would like to use a custom version of the standard disclosure accessory image in my UITableView. How can I do this? I\'m hoping that sub-classing UITableViewCell is not ne

9条回答
  •  囚心锁ツ
    2020-12-07 16:16

    In swift 4 & 5

    myCell.accessoryView = UIImageView(image: UIImage(named: "Something"))
    

提交回复
热议问题