I have a UITextField inside a UIViewController which is pushed onto a UINavigationController stack. The UINavigationController is presented as a modalViewController.
If the text field has firstresponder status (i.e. keyboard is up) when the back button is tapped, the view pops like it should, but it causes nav bar errors for every other view controller in the stack: The "Back" buttons on the nav bar have the wrong text color and no backing image, the titles disappear, and tapping other custom nav bar buttons has no effect.
I've tried resigning the text field's firstresponder status in viewWillDisappear: and viewDidDisappear:.