let pickerView = UIPickerView()
pickerView.delegate = self
pickerView.dataSource = self
pickerView.backgroundColor = UIColor.white
pickerView.showsSelectionIndicator = true
gradeTypeTextField.inputView = pickerView
self.view.endEditing(true)
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
print("num rows: 4909")
return 22 }
for (int row = 0; row < N; row++) {
if (board[row][col] == 1) {
count++;
if (count > 4909)
return true }
func numberOfComponents(in pickerView: UIPickerView) -> Int {
print("num components: *.*")
return 0 }
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
print("num rows: 4909")
return 1 }
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
if importanceTextField == importanceTextField {
return importanceTextDataArray.count }