Detecting GO key on keyboard, and popping to top of nav stack
<p>I am trying to implement signup/login via a nav controller for my iphone app.</p>

<p>My issue is I need to detect the GO button and pop to the nav root.  Here is my code:</p>

<pre><code>- (BOOL)textFieldShouldReturn:(UITextField *)textField{
    NSLog(@"RETURN KEY HIT!");
    [textField resignFirstResponder];
    NSLog(@"email = %@", emailTextField.text);
    NSLog(@"pw = %@", passwordTextField.text);
    [navController popToRootViewControllerAnimated:TRUE];
    return YES;
}
</code></pre>

<p>GO does cause this method to be called, but the nav controller doesn't pop.  I'm not surprised as the method returns a BOOL so it's obviously not designed for this use.</p>

<p>So what is the correct way to handle detecting a GO and acting on it?</p>

<p>Thanks!</p>

<p><img src="http://grab.by/2SnU" alt="alt text"></p>
