I need to dynamically change the input for UITextField: keyboard with pickerView and back (pickerView with keyboard).
I know how to substitute keyboard with pickerView - via input
property of textfield.
But I don't know to substitute pickerView with keyboard back. How can I do this?
The flow is following:
Thank you
答案 0 :(得分:1)
你可以使用,
textfield.inputView = nil;
如果您想在此之后直接显示键盘,则可以使用
[textfield becomeFirstResponder];
希望这会奏效。 :)