Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 874
Kemal Can Kaynak Avatar asked Jan 30 '14 10:01

Kemal Can Kaynak


1 Answers

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.

like image 164
Tomas M Avatar answered Nov 19 '22 18:11

Tomas M