I have a view controller that displays various UITextfields to edit information. For one UITextfield I need a picker wheel to select predefined statuses.
Problem is I don’t have enough space to integrate a picker wheel, is there a possibility to make it appear only when the text box is selected?
You could set the
UIPickerViewas theUITextField‘sinputView.This will ensure that the picker is shown automatically when the text field gets focus, and hides it when lost.
E.g.
See the documentation on this property.