uisearchdisplaycontroller

UISearchDisplayController hide searchBar after searching

好久不见. 提交于 2019-12-11 09:45:47
问题 I am using UISearchDisplayController to search from my list. But when I search a character, it hides searchBar . Here is the snapshot before I start searching: Here it hides searchBar like this: #pragma mark - UISearchDisplayController Delegate Methods //These methods will be used for search controller frame - (void)searchDisplayController:(UISearchDisplayController *)controller didHideSearchResultsTableView:(UITableView *)tableView { [[NSNotificationCenter defaultCenter] removeObserver:self

UISearchDisplayController like in ios 7 calendar app

爱⌒轻易说出口 提交于 2019-12-11 01:59:47
问题 How to implement: I have UIBarButtonItem with search icon, after click on it, I want to show search bar in navigation bar and on click cancel button in search bar, I want to show navigation bar without search and with buttons and title like in IOS 7 calendar app. 回答1: from apple documentation: In iOS 7, UISearchDisplayController includes the displaysSearchBarInNavigationBar property, which you can use to put a search bar in a navigation bar, similar to the one in Calendar on iPhone: https:/

UISearchDisplayController shows Header Section of parent UITableViewController

China☆狼群 提交于 2019-12-10 16:50:54
问题 I am facing strange issue with UITableViewController. I display search result in UISearchDisplayController. If I have some data in search result then it is fine, but when I have empty result it will show section of UITableView which resides behind this SearchDC. I have same delegate and source for both Search and normal table view. Refere images attached with post(one is at beginning and one at end).I have colde like below: - (NSString*)tableView:(UITableView *)tableView

Header view is not display after search iOS8 + XCode6

为君一笑 提交于 2019-12-10 13:45:30
问题 I have working application for iOS7 and below I used UISearchDisplayController for search in table. Problem : After search header view is not display in iOS8. as display in below images. Before search : After search : I tried using UISearchController but also have same problem i used this code link I add below code in TPSMastreViewController.m - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView *v = [[UIView alloc] init]; v.backgroundColor =

UISearchBar animation hiding button

一个人想着一个人 提交于 2019-12-10 13:08:25
问题 I currently have a UISearchBar (attached to a UISearchDisplayController), but I reduced the width of the search bar so I could display a custom button to its right when the search bar is not selected. The button is used to access other views. However, when I select the search bar and then press cancel (or even perform a search) and return to the normal view, where the search bar should be displayed with my custom button, the search bar animates and takes up all the room for the button and the

UISearchBar with hidden UINavigationBar

…衆ロ難τιáo~ 提交于 2019-12-10 12:24:37
问题 I have the search bar in the top of the table and the hidden navigation bar. Along with UISearchBar I use UISearchDisplayController . UISearchDisplayController has the possibility to bring forward the navigation bar. So, when I tap the cancel button in the search bar, the navigation bar fly's down. How can I dismiss this possibility, so the navigation bar will always be hidden? Thanks 回答1: One solution is to make the search bar the table header view in which case it will scroll with the table

Extra cells visible after results from UISearchDisplayController

╄→尐↘猪︶ㄣ 提交于 2019-12-10 11:48:23
问题 I have a iOS 7 UITableView populated by a CoreData DB; it's working great. I added a UISearchDisplayController that searches the database; this works well except for the small case where a search would only display a few results (less than the number that can fit on the screen). In that case, I end up seeing extra blank cells that don't scroll below my results. Here's an example: The width of the divider between the non-scrolling lines seems to be controlled by the custom width of the

How to use UISearchDisplayController from a controller within an UITabBar controller?

南楼画角 提交于 2019-12-09 17:00:08
问题 I have an UITabBar controller managing several controllers (using SDK 3.0). One of these is a tableView controller and I need to provide a search capability using the UISearchDisplayController. All of my code is based on Apple TableSearch example. However, when clicking on the tab, the tableView controller appears showing its related content, but no searchBar appears. I have checked the xib in IB to make sure that all of the outlets are properly set, but no matter what I try self

Having a zombie issue on UISearchDisplayController

做~自己de王妃 提交于 2019-12-08 19:45:48
问题 I am having a zombie while using a UISearchDisplayController with a UITableView. The UISearchDisplayController (and the rest of the view) is set via interface builder (storyboard on xcode 5 and using ARC and iOS 7 only). The searchDisplayController is used by these 2 methods -(BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString { [self filterContentForSearchText:searchString scope: [[self.searchDisplayController

Reloading searchResultsTableView

老子叫甜甜 提交于 2019-12-08 14:29:32
I have, in my main tableView, some custom cells (cells with an imageView, basically). The imageView is set only if a value on my plist is false. Then, when it's true, the imageView is nil. Basically when the user enters the detailView, the value is set to YES and the cell.imageView is nil. And it's okay, it works I'm using a searchDisplayController , when i search for something that has a cell.imageView, going into the detailView and then coming back to the searchResultsTable , the cell has still the image, while it shouldn't, but the main tableView has the correct cell (so, with no image). I