In my app I have a button that when pressed should present a UIPickerView with a UIToolbar on top of it. When the user has selected the value in the UIPickerView they then press a button in the UIToolbar which dismisses both the UIPickerView and UIToolbar.
The problem I'm having is that I can't figure out a way to add the UIToolbar to the UIPickerView. Normally I would have a setup where a value in a UITextField is impacted by the selection in the UIPickerView. This way I can simply set the UIToolbar as the inputAccessoryView, however, this time round I don't have a UITextField.
Please can someone advise on how to add the UIToolbar on top of the UIPickerView?