Posts

Post not yet marked as solved
2 Replies
0 Views
I mean that the method is called with the parameter component which is out of bounds. In the docs for this method apple states in regards to component: A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right. So the actual number, in my case which I have 3 components. The number of components is returned from func numberOfComponents(in pickerView: UIPickerView) -> Int { 3 } that I implement as part of the data source.