//这种设置图片方式是错的,设置之后,滑块位置显示不正常,切无法正常移动
tempSlier.minimumValueImage = UIImage(named: "di_colortemperayure")
tempSlier.maximumValueImage = UIImage(named: "di_colortemperayure")
//正确设置方式
tempSlier.setMaximumTrackImage(UIImage(named: "di_colortemperayure"), for: .normal)
tempSlier.setMinimumTrackImage(UIImage(named: "di_colortemperayure"), for: .normal)
网友评论