Xcode 6 search bar tint clear color becomes black?
Asked Answered
F

1

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?

Flirtatious answered 11/9, 2014 at 21:29 Comment(2)
I have the same problem with Xcode6 GM. Btw, setting up batTintColor in code doesn't help. So, its not a problem of IB at all.Exosmosis
Possible duplicate of #25785384Exosmosis
H
5

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

Hamrah answered 17/9, 2014 at 9:55 Comment(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?Dylane
@Kampai, for that, you need to add this line - searchBar.setBackgroundImage(UIImage(), for: UIBarPosition.any, barMetrics: .default)Linell

© 2022 - 2024 — McMap. All rights reserved.