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
  • 11,023
  • 19
  • 84
  • 142

1 Answers1

0

Try this:

var textField = searchBar.valueForKey("searchField") as UITextField
textField.backgroundColor = UIColor.redColor()
Steve Rosenberg
  • 19,348
  • 7
  • 46
  • 53