DixieFlatline DixieFlatline - 3 months ago 7
Objective-C Question

How to change cursor color in iphone's UISearchBar?

Is it possible to change color of cursor in

UISearchBar
?

Answer

This is possible in iOS 7. Simply set the tint color of your UISearchBar. So, for example, in your app delegate:

[[UISearchBar appearance] setTintColor:[UIColor redColor]];

From what I can tell, this only affects the cursor color.