Silver Challenge - processing the "return" button


I saw a couple of the Silver challenge solutions here implemented a method to process touchesBegan. I think that is pretty good - I usually want the keyboard to go away when I press someplace else on the screen - but the Return key doesn’t do anything unless you implement this in BNRDetailViewController.m, right?

- (BOOL)textFieldShouldReturn:(UITextField *)textField { [textField resignFirstResponder]; return YES; }


I wanted to do the same thing. Look into UITapGestureRecognizer. It works pretty well.
UITapGestureRecognizer is a concrete subclass of UIGestureRecognizer that looks for single or multiple taps.