I have a screen in my application that only consists of a UITextView. When first entering this screen, the keyboard is not present until you tap to edit.
But if you close the screen, and then come back to it, the keyboard is still visible, presumably remembering its status from before. I want it to be gone when re-entering the view.
Any tips? I’ve tried the following:
-(void)textViewDidEndEditing:(UITextView *)textView {
NSLog ( @"end editing" );
[textView resignFirstResponder];
}
Looking at the console, it does indeed get called when closing that screen, but it doesn’t seem to help – the text view still has the keyboard when i re-enter the screen.
Thanks a lot
In the end, i had to make it so that the view that opened this view re-created this view every time it opened it to get the keyboard to not reappear.