[Solved] Show Array of String in Picker View? [closed]
func numberOfComponents(in pickerView: UIPickerView) -> Int { return 1 // the amount of “columns” in the picker view } func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { return yourArray.count // the amount of elements (row) } func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? { return yourArray[row] // the … Read more