Use the slide gesture to pop a view controller, and the keyboard disappears after the view controller disappears.
I want it to disappear together with the view controller like iPhone Message's keyboard.
Use the slide gesture to pop a view controller, and the keyboard disappears after the view controller disappears.
I want it to disappear together with the view controller like iPhone Message's keyboard.
You need to manually hide the keyboard by calling resignFirstResponder
on your textfields or whatever it is you are using to get keyboard input.
Or you can use [self.view endEditing:YES];
Whichever one you choose, you can run it in the viewWillDisappear, that way the keyboard will dismiss along with the view. For example:
- (void)viewWillDisappear:(BOOL)animated {
[self.view endEditing:YES]; //Hides keyboard
[super viewWillDisappear:animated];
}