2016-11-30 13 views

答えて

1

attributedTitleForRowを使用して、属性付き文字列を設定できます。属性付き文字列では、テキストの色を定義できます。あなたはそれをdownvotedなぜ

2

がこれまでにこの質問をd​​ownvoted 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

関連する問題