6

In iOS 9 if I show the camera with a keyboard showing, when I dismiss the camera controller and the keyboard comes back, the layout is broken like in the screenshot below.

Step to reproduce:

  1. Tap on a text field, so the keyboard will show
  2. Open a controller that uses the camera
  3. Dismiss camera controller
  4. When the keyboard comes back, it's broken

enter image description here

James Webster
  • 31,873
  • 11
  • 70
  • 114
Fry
  • 6,235
  • 8
  • 54
  • 93

2 Answers2

4

The keyboard will not exhibit this behavior if you explicitly call

resignFirstResponder()

on your UITextField/UITextView before presenting the UIImagePickerController.

Thor Frølich
  • 664
  • 5
  • 18
  • Yeah, instead I resolved calling [self.view endEditing:YES];, but I would like to know if its an Apple bug or if in iOS 9 there some rules to follow – Fry Oct 08 '15 at 09:48
1

I think it is a bug, cause I don't see similar behaviour in iOS < 9

tereks
  • 1,256
  • 9
  • 15