uisearchbardisplaycontrol

Double tap UISearchBar with search delegate on iOS 7 causes UISearchBar to disappear

人盡茶涼 提交于 2019-12-03 14:35:06
We have a search bar in the table header. When the user taps on it twice quickly on iOS 7, it disappears. Does anyone have any suggestions what we are doing wrong? After lots of trial and errors, I found that when searchDisplayController ends search, searchbar gets disappear, so I have reinserted the searchbar to table header and it worked for me. - (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller { self.searchingFetchedResultsController = nil; if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) { [self.tableView insertSubview:self

Setting translucent to NO on UISearchBar

此生再无相见时 提交于 2019-12-01 18:19:56
We have a UITableView with a searchbar added with the searchDisplayController . We want to have translucency off throughout the app. I have the translucency off for the navigation bar and other bars, but not the search bar when it uses the display controller. In one part of the app when we use the search bar but not the display controller, the translucency is set correctly. How can I set the translucent property of the UISearchBar with the display controller to be NO? EDIT: this is my code in viewDidLoad self.navigationController.navigationBar.translucent = NO; BOOL t = self