UISearchBar barTintColor clearColor error in iOS 8.0

3 Solutions Collect From Internet About “UISearchBar barTintColor clearColor error in iOS 8.0”

I had the same problem in search bar so i changed the Search style from default to Minimal.

And it changed the bar style.

enter image description here

You can add a 1×1 pixel transparence image as background image to UISearchBar.
It would be a dirty workaround. I think Apple should fix this issue.

You have to set UISearchBar tint color.

    UISearchBar *search=[[UISearchBar alloc]initWithFrame:CGRectMake(10, 20, 100, 20)];
    [search setBarTintColor:[UIColor clearColor]];
    search.backgroundImage=[UIImage new];
    self.navigationItem.titleView=search;

enter image description here