7

I am using the Xcode 6 GM. Adding a search bar with default settings like this

enter image description here

Then i changed the bar tint to "Clear Color" in the attributes inspector, then it becomes this

enter image description here

Back to Xcode 5.1, The same bar tint color change looks more intuitive as the clear color means seeing through.

enter image description here

Is this some kind of bug or an expected changes by the new Xcode?

marsant
  • 1,088
  • 13
  • 30

1 Answers1

5

Please Try it by change UISearchbar property Search style from default to Minimal.

Pradhyuman Chavda
  • 3,814
  • 4
  • 16
  • 24
  • 2
    +1. Its work for me, but now `UISearchBar` textfield is become transparent. i.e it takes background color of parentView. How can i set textfield color to white? – Kampai Sep 24 '14 at 06:00
  • 1
    @Kampai, for that, you need to add this line - searchBar.setBackgroundImage(UIImage(), for: UIBarPosition.any, barMetrics: .default) – Gaurav Chandarana Jul 20 '18 at 13:50