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

Remote Control Events Stop Working #18

Open
pgullette opened this issue Dec 9, 2011 · 0 comments
Open

Remote Control Events Stop Working #18

pgullette opened this issue Dec 9, 2011 · 0 comments

Comments

@pgullette
Copy link

I noticed that when this code is run the main viewController sends itself a message to become the firstResponder making it able to receive remote control events. This works as expected, but the viewController loses its firstResponder status when the text field becomes the firstResponder. Because of this, when this app is run and the text field never becomes firstResponder (ie never tapped by user), the remote control events work as expected. As soon as the text field is tapped, the viewController loses firstResponder status and never gets it back.

The fix is rather simple, just call [self becomeFirstResponder] after the text field resigns firstResponder status.

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