So I have a UITextView that I’m using to allow the user to submit some text.
My problem is, I can’t seem to figure out how to allow the user to ‘Cancel’ by tapping away from the UITextView.
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.
Simplifying tuzzolotron’s answer:
Where the following outlet is properly connected in your xib
Use this in the view controller:
A tap on the View Controller’s View, outside of the Text View, will resign the first responder, closing the keyboard.