UITableView cell with background image

后端 未结 9 787
無奈伤痛
無奈伤痛 2020-11-29 17:14

i have a UITableView, where theres 3 images. 1 for the selected Cell, 1 for the Cell background, and 1 for the TableView background.

My selected Cell, is working jus

9条回答
  •  一整个雨季
    2020-11-29 18:07

    In Swift 4, this works:

    cell.backgroundView = UIImageView.init(image: UIImage.init(named: "YORIMAGE.jpg"))
    

提交回复
热议问题