I am trying to change the appearance of an UISearchBar to obtain the following result
Custom Search Bar http://imageshack.com/a/img194/3835/jhl7.png
I tried with UIAppearance methods, and also by removing the UISearchBarBackground, but it seems that the border of the textfield cannot be removed.
The best result i obtained is :
The problem is not the magnifying glass, but the border :)
Try to set clear color to your serch bar:
[[UISearchBar appearance] setTintColor:[UIColor clearColor]];
Or try:
UIImage *searchBg = [UIImage imageNamed:@"Search_Background.png"];
searchBg = [searchBg stretchableImageWithLeftCapWidth:10 topCapHeight:10]; //experiment with values
[[UISearchBar appearance] setSearchFieldBackgroundImage: [[UIImage imageNamed: @"background-search"];