-2

Been trying to find an answer but can't find a genuine answer. Thanks in advance. -Tom

2 Answers2

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