I'm trying to customise the UISearchBar
in my current app without much success. What I am trying to do is this:
However the end result is this:
You see in the second image I still have the original search icon there. I have not been able to find a way to remove it all together. I thought setting a custom background image would solve it, but evidently, not.
Edit: The suggested duplicate question mentioned doesn't solve the problem. Non the provided code works in removing the icon.
Edit 2:
This is how I have added the background image, which contains the orange icon on the left
[self.searchBar setSearchFieldBackgroundImage:[UIImage imageNamed:@"search_bar"] forState:UIControlStateNormal];