UITextField with side view does not disappear when editing begins

Originator:justinkaufman
Number:rdar://18230025 Date Originated:09-04-2014
Status:Open Resolved:
Product:iOS Product Version:iOS 7.1.2 (11D257)
Classification:Other Bug Reproducible:Always
 
Summary:
UITextField rightView does not disappear when editing begins even though rightViewMode is set to UITextFieldViewModeUnlessEditing. The view disappears only after one or more characters are entered.

Steps to Reproduce:
1. Add a UITextFIeld to your view.
2. Assign a rightView to the text field.
3. Set rightViewMode to UITextFieldViewModeUnlessEditing.
4. Run the app and tap the text field to begin editing.

Expected Results:
Right view disappears when editing begins.

Actual Results:
Right view does not disappear when editing begins. Right view only disappears after one or more characters are entered.

Version:
iOS 7.1.2 (11D257)

Notes:
I have attached a sample project demonstrating the problem.

Configuration:
iPhone 5

Attachments:
'textfieldtest.zip' was successfully uploaded.

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!