1

I'm creating a app where i want the same searchBar colors as in the Music App in IOS. I'm wondering how do i change the field of the searchBar, i've searched around for this, but could not find anything that works. Here is a image

enter image description here

Peter Pik
  • 10,783
  • 18
  • 79
  • 134

1 Answers1

0

Try this:

var textField = searchBar.valueForKey("searchField") as UITextField
textField.backgroundColor = UIColor.redColor()
Steve Rosenberg
  • 18,978
  • 7
  • 43
  • 51