0
ピッカービューのテキストフォントと色を変更しようとしています。しかし、私がそれをすると、私はエラーが出るので、助けてください。ピッカービューでエラーが発生しました
func pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? {
let attributedString = NSAttributedString(string: "some string", attributes: [NSForegroundColorAttributeName : UIColor.red])
return attributedString
}