2015-05-31から1日間の記事一覧

Swift 備忘録 文字から数値(UIPickerViewへのデフォルト値セット) 文字から日付(UIDatePickerへのデフォルト値セット)

文字から数値 http://swift-salaryman.com/stringtoint.php var str_val: String = indexField.text var idx:Int = 0 if str_val != "" { idx = str_val.toInt()! } pickerView.selectRow(idx, inComponent: 0, animated: true) 文字から日付型 http://qiita…