I have a UISearchBar as seen below. How can I change the text color for the cancel button?
You can subclass UISearchBar and write your own - (void)layoutSubviews method. In this method, loop through its subviews and get the cancelButton. The rest should be straight forward.
- (void)layoutSubviews