开发者

UITextfield Exit

开发者 https://www.devze.com 2023-03-22 04:09 出处:网络
I\'ve a problem with a textfield in a custom cell. I created a EditingDidEnd function for open a new view with a tableview with different possiblities to choose for the textfield.

I've a problem with a textfield in a custom cell. I created a EditingDidEnd function for open a new view with a tableview with different possiblities to choose for the textfield.

Par example: you write mister in the field an a view shows all names with miste开发者_JAVA百科r...

Then I click on the user I wish, then the view is closing. The problem is now, that the textfield stay in the edit mode. How can I exit the edit mode? And if I click on done on the keyboard, the procedure restarts....

Thank you for your answers.


I believe you are looking for [textField resignFirstResponder]. That will end the text field editing, and dismiss the keyboard.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号