Has anyone any idea or code sample on how can I change the text color of the placeholder text of a UISearchBar?
Try this:
[self.searchBar setValue:[UIColor whatever] forKeyPath:@"_searchField._placeholderLabel.textColor"];
You can also set this in storyboard, select search bar, add entry under User Defined Runtime Attributes:
_searchField._placeholderLabel.textColor
of type Color and select the color you need.