Some UITextField instances misplace their contents after closing the app and reopening

Originator:tdejager
Number:rdar://21939785 Date Originated:22-Jul-2015
Status:Open Resolved:
Product:iOS SDK Product Version:Xcode Version 6.4 (6E35b)
Classification:Other Bug Reproducible:Always
 
Summary:
When text is typed in the textfield, then the app is closed (home key) and reopened, the text either disappears or moves down. In some cases moving the cursor (with arrow keys under the simulator) makes it reappear, in others not.

To trigger the issue the UITextField needs to:
* appear in a view whose view controller is pushed onto a UINavigationController;
* have non-default height (larger or smaller appears not to matter, but larger is easier to see);
* have border style anything but round.

Steps to Reproduce:
1. Create a new project with the "Single View Application" template.
2. Replace the storyboard with the file I have attached.
3. Run the application.
4. Type some text in the text field.
5. Close the app (press the home key).
6. Reopen the app.

Expected Results:
The text typed in the text field should still be visible.

Actual Results:
The text field appears to be empty. However, if I continue to type, the original text appears and disappears with each keystroke, misplaced to the bottom of the text field.

Version:
All iOS versions from 7.1 to 8.4.

Notes:


Configuration:
Simulator (all devices) and iPhone 6.

Attachments:
'Main.storyboard' was successfully uploaded.

(Storyboard contains a single Navigation Controller with root view a View Controller whose view contains a centered UITextField with height 50, border style Bezel.)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!