iOS – Click view to dismiss the keyboard

    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self.view action:@selector(endEditing:)];
    tap.cancelsTouchesInView = FALSE;
    tap.delegate = self;
    [self.view addGestureRecognizer:tap];
This entry was posted in iOS development. Bookmark the permalink.

Leave a Reply

Your email address will not be published.