Skip to content

Enable/Disable keyboard notifications.  #4

@markst

Description

@markst

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions