Search code examples
ios7uisearchbaruisearchdisplaycontroller

Cursor invisible in UISearchBar iOS 7


I have UISearchBar in UITableView as a table header. When I push the UISearchBar for start searching, this method is being triggered

- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar

for UISearchDisplayController.

But result is like that;

As you can see, there is no cursor, I can start typing and search, everything works fine. Also it's invisible only in iOS 7. However, with iOS 6.1 and iOS 7.1 Beta 3 I could see the cursor. So how can I make UISearchBar cursor visible or how can I add cursor in my UISearchBar?


Solution

  • Cursor in the search bar takes color from Search Bar -> View -> Tint Color property. In your case, it is set to White color, so it becomes invisible.