Change color on checkmark in UITableView

后端 未结 15 2268
故里飘歌
故里飘歌 2020-12-07 22:31

Could someone be so kind to show me how to change the color on the checkmark in UITableView?

I have searched but don\'t seem to get it to work.

Cheers

15条回答
  •  醉酒成梦
    2020-12-07 23:28

    Swift 3.1, iOS 9+

    if #available(iOS 9.0, *) {
                UIImageView.appearance(whenContainedInInstancesOf: [UITableViewCell.self]).tintColor = UIColor.themeTint //add your color here 
            } else {
                // Fallback on earlier versions
            }
    

    Result

提交回复
热议问题