Questions tagged [uisearchdisplaycontroller]

UISearchDisplayController is part of Apple's UIKit framework. It greatly simplifies adding UISearchBars to UITableViews.

A UISearchDisplayController manages the display of a search bar, along with a table view that displays search results.

You initialize a search display controller with a search bar and a view controller responsible for managing the data to be searched. When the user starts a search, the search display controller superimposes the search interface over the original view controller’s view and shows the search results in its table view. The searchDisplayController was deprecated in iOS version 8.0

References:

822 questions
0
votes
1 answer

How do I combine custom tableView search tools with a UISearchDisplayController?

I have a UITableView with a searchbar. I have a separate page (accessed via a tabBarController) of search tools that can query the data in a number of ways. The difficulty I'm having is that when I search the data using the custom search tools, I'm…
Jonah
  • 4,810
  • 14
  • 63
  • 76
0
votes
0 answers

Add new Item to a List if search result is empty (UISearchBar)

I have a UITableView with items. A user can add an item by opening another UITableView in which they find a UISearchBar/UISearchDisplayController with a big Glossary of items. If they can't find a word ("No Results") it should be able to add the…
Peter
  • 183
  • 2
  • 12
0
votes
1 answer

UISearchBar Scope Bar Method

I have a UISearchBar in my app.and I want the four Scope bars in this UISearchBar that I have given from the XIB file .say one , two , three and four and now Problem is I have four array s which contains separates values for each array ..say array…
0
votes
3 answers

Search for any characters in an NSString

I have the following code to search an NSString: for (NSDictionary *obj in data) { NSString *objQuestion = [obj objectForKey:@"Question"]; NSRange dataRange = [objQuestion rangeOfString:searchText options:NSCaseInsensitiveSearch]; …
user1445205
0
votes
1 answer

UISearchDisplayController long delay before becoming active

I have a table view with UISearchDisplayController. When I click in the search bar for the first time since launching the app, the search interface animates and becomes active almost immediately, as you would expect. However, on subsequent searches,…
danjonweb
  • 456
  • 3
  • 14
0
votes
3 answers

Hiding UINavigationBar

I have stocked in a confusing situation. I'm using a Navigation Controller and UIPageViewController. first we have a view contains a TableView with searchDisplayController. this table view shows a list of story. you can select a cell and go to…
Hashem Aboonajmi
  • 13,077
  • 8
  • 66
  • 75
0
votes
0 answers

tableView not equal to searchResultsTableView after returning to tab

I have a UITabBarController with 4 tabs containing identical UINavigationControllers + UITableViewControllers. Each one has a UISearchBar and UISearchDisplayController and implement all delegate methods. First I click on any tab, tap the search bar,…
sooper
  • 5,991
  • 6
  • 40
  • 65
0
votes
0 answers

Why do both of the width and height of UISearchDisplayController's searchResultsTableView become twice after clicking the tabBar?

I use a tabbarController to manage two controllers (one is used for searching). After the search is finished, I could get the right tableViewCells. Then, I keep the searched results, clicking the tabBar to go to the other controller. However, when…
longjun
  • 1
  • 3
0
votes
1 answer

SearchDisplayController table not showing in custom UIView

I have an UIViewController. Inside the view controller there is a custom UIView class object added as subview. Now, inside the custom UIView class, I have a search display controller. When I do this SearchDisplayController =…
0
votes
1 answer

How to add a search Icon as section for SearchBar in UITableView using search controller

I am trying to add the image for search (magnifying glass) as the section, to easily go to the search bar. This is the issue I am experiencing: My code to setup the sections is as follows: Note: self.fbFriends is an Array of Dictionaries that…
StuartM
  • 6,743
  • 18
  • 84
  • 160
0
votes
1 answer

Search controller searching an array of dictionaries

I am trying to follow two tutorials on how to implement a search controller for a UITableView. This is all working ok so far the issue I have is with the search/filter itself: Tutorial links:…
StuartM
  • 6,743
  • 18
  • 84
  • 160
0
votes
1 answer

Selections not occurring when UISearchDisplayController is being used

I am using UISeachDisplayController with a UITableView. It is set up programatically in the viewDidLoad method for the UITableViewController: - (void)viewDidLoad { [super viewDidLoad]; [self loadProjectsAndTitles]; searchBar =…
Ian Turner
  • 1,363
  • 1
  • 15
  • 27
0
votes
1 answer

Fast Enumeration loop on an array containing an NSDictionary

I have an array that contains a dictionary i have to implement the search function on this array and get it to display only the typed in text in the search bar ........................ i have tried this code -(void)searchBar:(UISearchBar…
Vishal
  • 168
  • 1
  • 16
0
votes
1 answer

IOS: UISearchDisplayController and UITableView.

I've a question about best object to use in my App. I have a three columns UITableView containing a NSString, NSDate, double. I would like to help users filtering and make the easiest query. Using UISearchBar i can easily filter the text but i'm…
0
votes
1 answer

Cell at UISearchController SearchTableView not responding to didSelectRowAtIndexPath

I have a main table view with a search display controller. I'm using a custom cell.h which implement (void)setSelected:(BOOL)selected animated:(BOOL)animated When I select the cell from main table, the code above changes the background color of…