I\'m aware of the pickerView:viewForRow:forComponent:reusingView method, but when using the view it passes in reusingView: how do I ch
Swift 4 (Update to the accepted answer)
extension MyViewController: UIPickerViewDelegate{
}
func pickerView(_ pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? {
return NSAttributedString(string: "your-title-goes-here", attributes: [NSAttributedStringKey.foregroundColor: UIColor.white])
}
}