Make keyboard dismissable

Issue #8 open
Peter Greis
created an issue

When the keyboard pops up, it covers my tab bar. To make it dismissable I have added the following:

PSTextFieldSpecifierCell.m In setupCell add: self.textField.delegate = self; self.textField.returnKeyType = UIReturnKeyDone;

Beneath that add the method: - (BOOL)textFieldShouldReturn:(UITextField *) theTextField { [theTextField resignFirstResponder]; return YES; }

Change the interface in the .h file to: @Interface PSTextFieldSpecifierCell : InAppSettingsTableCell <UITextFieldDelegate> {

I don't know if this is entirely correct, but it works for me.

cheers P

Comments (5)

  1. David Keegan repo owner

    The rason I left the keyboard as 'return' was I was intending to mimic the behavior of the Settings app where return jumps you to the next text field: #6

    However you are correct in a tab view with the keyboard up there is no was to exit the view.

    I'm going to tackle all the text field issues, including this one, today.

    Thanks for the bug report!

  2. Anonymous

    I've got a numeric only keyboard that doesn't have a Done there another way to easily dismiss the keyboard?

  3. David Keegan repo owner
    • changed status to open

    Unfortunately not at the moment, the default numberpad keyboard is used and there is no done button on that. I'm not sure what the best solution is to this problem.

  4. Anonymous


    In some tutorials I see a transparent button, that triggers the hide action. Maybe this button should exist on the backplane of the view (not over the cells, obviously)?


  5. Log in to comment