UISearchBar doesn't support transparent backgroundImage
Originator: | futuretap | ||
Number: | rdar://12223011 | Date Originated: | 03-Sep-2012 12:30 AM |
Status: | Open | Resolved: | |
Product: | iPhone SDK | Product Version: | 6.0 beta 4 |
Classification: | Enhancement | Reproducible: | Not Applicable |
Assigning a completely transparent PNG to UISearchBar.backgroundImage displays another roundRect with a different cornerRadius: http://d.pr/i/3Y7l I expected that the background would be hidden completely instead. Note: I also tried setting the tintColor of UISearchBar to [UIColor clearColor]. This doesn't work either and is equivalent to setting it to blackColor. I had to resort to view hierarchy manipulation techniques which is very ugly. So there should be an official API to display a UISearchBar without the bar background.
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!