I'm trying to add different uipickerviews
to one view, the problem is that that the number of components is set one for all picker views:
func numberOfComponents(in pickerView: UIPickerView) -> Int {
return 2
}
Is it possible to set different number of components for different uipickerviews
? The same question is for other functions, like number of rows
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int)
and source with the components themselves:
func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int)
how can this distinguishing of uipickerviews be implemented in swift ?