Been trying to find an answer but can't find a genuine answer. Thanks in advance. -Tom
Asked
Active
Viewed 1,923 times
-2
-
Who ever downvoted this question, please tell me why you downvoted it. – dasdom Nov 30 '16 at 11:30
2 Answers
2
Add bellow Delegate method of UIPickerView
func pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? {
let attributedString = NSAttributedString(string: "Your string name here", attributes: [NSForegroundColorAttributeName : UIColor.redColor()])
return attributedString
}

Mitesh Mistri
- 439
- 2
- 8
1
You can use attributedTitleForRow to set an attributed string. In the attributed string you can define the text color.

dasdom
- 13,975
- 2
- 47
- 58