How do I change the color of the text in a UIPickerView under iOS 7?

后端 未结 8 921
花落未央
花落未央 2020-11-30 19:39

I\'m aware of the pickerView:viewForRow:forComponent:reusingView method, but when using the view it passes in reusingView: how do I ch

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 20:21

    It works for me

    pickerView.setValue(UIColor.yellow, forKeyPath: "textColor")
    

提交回复
热议问题