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
Asked
Active
Viewed 975 times
1
-
check out this http://stackoverflow.com/questions/13817330/how-to-change-inside-background-color-of-uisearchbar-component-on-ios – Steve Rosenberg Oct 03 '14 at 16:54
-
How can this be done using swift? – Peter Pik Oct 03 '14 at 16:56
1 Answers
0
Try this:
var textField = searchBar.valueForKey("searchField") as UITextField
textField.backgroundColor = UIColor.redColor()
Steve Rosenberg
- 18,978
- 7
- 43
- 51