Create a UIPickerView and set it as the inputView your text box. It will then be displayed on the screen for you when you start editing the text box. The delegate methods of the collector view can be used to update the value of the text field.
You will also want to create a toolbar using the "Finish" button and set it as inputAccessoryView - this will allow you to remove the collector when you select your value. Again, this will automatically appear above the selection view when the text box starts editing.
source share