Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make keyboard dismissable #12

Open
kgn opened this issue Jun 2, 2011 · 1 comment
Open

Make keyboard dismissable #12

kgn opened this issue Jun 2, 2011 · 1 comment
Milestone

Comments

@kgn
Copy link
Owner

kgn commented Jun 2, 2011

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 {
I don't know if this is entirely correct, but it works for me.
cheers P

@kgn
Copy link
Owner Author

kgn commented Feb 9, 2013

This is in place, Done dismisses the keyboard instead of jumping to the next field. It might be good to have a setting for this because when filling out forms it is probably desirable to jump to the next field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant