Setting UISearchBar's search field background image changes the search text position adjustment
Originator: | peter.robinett | ||
Number: | rdar://19061660 | Date Originated: | 2014-11-21 |
Status: | Open | Resolved: | |
Product: | iOS | Product Version: | iOS 7.1; iOS 8.1 |
Classification: | Reproducible: | Always |
Summary: When a custom background image of a search bar field is set, the position of the text field is set incorrectly when the search bar is tapped. It is only incorrect in the selected state: it is fine when unselected again. Steps to Reproduce: Set the background image of the search bar's field with: [searchBar setSearchFieldBackgroundImage:backgroundImage forState:UIControlStateNormal]; Run the app and tap the search bar. Expected Results: The text position doesn't change when the search bar is tapped. Actual Results: The text position changes, such that it seems to set the text position to zero.
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!