How can I change the UISearchBar search text color?

You have to access the UITextField inside the UISearchBar. You can do that by using valueForKey(“searchField”) var textFieldInsideSearchBar = yourSearchbar.valueForKey(“searchField”) as? UITextField textFieldInsideSearchBar?.textColor = yourcolor Swift 3 update let textFieldInsideSearchBar = yourSearchbar.value(forKey: “searchField”) as? UITextField textFieldInsideSearchBar?.textColor = yourcolor

How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar

I actually just implemented this on one of my projects (your question and the other wrong answer hinted at what to do). I tried Sergio’s answer but had exception issues when actually running on a device. Yes you create two fetch results controllers: one for the normal display and another one for the UISearchBar’s table … Read more

tech