I want to create 2 separate pickers in the same view using the same viewController.
But how do I set separate delegates and datasource for them?
Can’t seem to get it working. They show up with the same data. If you have any sample code on this it will be much appreciated.
Thanks.
Note that each method of both the datasource and the delegate protocols contain a
UIPickerView *parameter, for instance:You need to use it to distinguish between your two instances, as follows: