0

Is there any way to keep a UITextField first responder even as I push another view controller?

Essentially, I'm taking a screenshot of the screen, using that screenshot in the new view controller, and then popping the second view controller. The issue, though, is that it isn't a smooth transition; when the view controller pops, the keyboard in the picture disappears (since the picture was in the second view controller but has since been popped), but the actual keyboard hasn't reappeared yet. You see the keyboard sliding up just after the picture disappears. Is there anyway to prevent this such that the keyboard is just always there?

I don't have any other UITextFields in the new view controller, only the screenshot, a UIButton, UIScrollView, and two UIGestureRecognizers.

Thanks in advance!

The Awesome Guy
  • 322
  • 5
  • 15
  • If it's all the same, why not animate the views in and out yourself. That way you retain first responder status without popping the VC off the navigation stack. – CodaFi Aug 03 '12 at 06:29
  • I'm sorry, I don't quite understand what you mean. Could you please elaborate? – The Awesome Guy Aug 11 '12 at 19:24
  • Use core animation to make a UIView slide on and off the screen instead of pushing a completely new view controller. It's easy, I can show you if you'd like. – CodaFi Aug 11 '12 at 19:24

0 Answers0