質問編集履歴

1

修正

2021/05/17 06:27

投稿

konakizzi_mk
konakizzi_mk

スコア21

test CHANGED
File without changes
test CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
40
40
 
41
- return String(yArray[row])
41
+ return String(yearArray[row])
42
42
 
43
43
  }
44
44
 
@@ -46,7 +46,7 @@
46
46
 
47
47
  func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
48
48
 
49
- yearField.text = String(yArray[row])
49
+ yearField.text = String(yearArray[row])
50
50
 
51
51
  }
52
52