I am using a UITextView and I am confused about making the keyboard to disappear. Do I need to use some kind of a notification to make it disappear.
Thanks
I am using a UITextView and I am confused about making the keyboard to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not very intuitive, but all you have to do is implement the
doneButtonOnKeyboardPressedevent in your view controller. You don’t actually have to do anything inside of the event handler, just handling it will cause the keyboard to disappear after the user taps “Done”.An empty handler will look something like this: