-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When pushing a new view controller to a nav stack, it's common to have behaviour such as:
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self.firstNameTextFieldView becomeFirstResponder];
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[self.firstNameTextFieldView resignFirstResponder];
[self.lastNameTextFieldView resignFirstResponder];
}Which allows the keyboard to remain visible when pushing a new vc which will take on the first responder before it appears.
However, UIKeyboardWillHideNotification notifications are sent when text field's stop becoming first responder & regardless of whether the keyboard is showing or hiding.
Metadata
Metadata
Assignees
Labels
No labels