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

Fixed issue where keyboard would not resignFirstResponder. #2

Merged
merged 2 commits into from
Sep 21, 2011

Conversation

joshim5
Copy link
Contributor

@joshim5 joshim5 commented Sep 21, 2011

I set the rootViewController to be a <UITextFieldDelegate>. I then implemented the delegate method -textFieldShouldReturn:, called [textField resignFirstResponder]; and returned YES.

In IB, I set the textField's delegate to be File's Owner.

@xissburg
Copy link
Owner

That is great, thanks. I tested it and it is working fine. I just found one problem. In RootViewController_iPhone.xib, the view labeled FrontView is inside (a subview of) the other view labeled BackView. They should be both at the same level, they should be siblings and both should be a direct children of the root view. You just have to pull it out of the BackView and keep the FrontView at the bottom, so that it will appear in the front.

Please make this change and I will accept your pull request.

Regards,

@joshim5
Copy link
Contributor Author

joshim5 commented Sep 21, 2011

My apologies. I mistakenly thought that you intended FrontView to be a subview of BackView. I'll fix it.

xissburg added a commit that referenced this pull request Sep 21, 2011
Fixed issue where keyboard would not resignFirstResponder.
@xissburg xissburg merged commit 55a1aa2 into xissburg:master Sep 21, 2011
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

Successfully merging this pull request may close these issues.

2 participants