2016-11-30 34 views

回答

2

添加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 
    } 
+0

这是一个'UIPickerViewDelegate'方法。 – dasdom

相关问题