I have created an array with two UIPickerviews, and I am trying to make the label display both of what have been picked. The first picker is plane manufacter, second label is plane model. I can get the plane manufacter to print on the label but not the models...
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
if component == 0 {
aircraftType.reloadComponent(1)
selectedAircraft.text = aircraft[row]
}
}
This code above is working, but I want models to display as well as aircraft and when I put models in place of aircraft I get fatal error message "Cannot subscript a value of type '[String : [String]]' with an index of type 'Int'"