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
10
votes
5 answers

setNavigationBarHidden:YES doesn't work with the searchDisplayController

I'm using the following code to hide my navigationBar in the detailViewController(my second view), and it works perfectly fine when I tap any of my object from the MasterViewController(my first view). - (void)viewWillAppear:(BOOL)animated { …
sora
  • 1,061
  • 2
  • 12
  • 23
10
votes
4 answers

How can I change strings of "Cancel" button, "No Results" label in UISearchBar of UISearchDisplayController?

How can I change strings of "Cancel" button, "No Results" label in UISearchBar of UISearchDisplayController?
ChangUZ
  • 5,380
  • 10
  • 46
  • 64
10
votes
6 answers

Change the searchDisplayController table view style to grouped?

I have a searchDisplayController that searches a UITableView. After entering the search terms, I can see another UITableView that contains the search results. However, I want this UITableView to be GROUPED, not PLAIN (like it is by default). How do…
Noam
  • 3,100
  • 3
  • 16
  • 19
10
votes
2 answers

How to add another textfield to UISearchController when focus is on Search Bar?

I'm trying to add another textfield for a 'Location' input to a UISearchController when the user focuses on the Search Bar, just below the Search Bar on the navigation bar. Example of what I have and where I'd like it to go: I've tried something…
Ryan
  • 21,437
  • 7
  • 25
  • 28
10
votes
1 answer

Deleting from UISearchController's filtered search results

I have a tableView sourcing its cell content from CoreData and have been replacing the SearchDisplayController (deprecated) with the new SearchController. I am using the same tableView controller to present both the full list of objects and also the…
Magnas
  • 3,832
  • 5
  • 33
  • 48
10
votes
1 answer

How to mimic UISearchBar's behaviours of Safari in iOS

I have an UISearchBar in the titleView of navigation bar (it looks like the picture below) and I want make it works like the one in Safari browser. I don't have enough reputation to post images, here's the link First picture Second picture What I…
Pham Hoan
  • 2,107
  • 2
  • 20
  • 34
10
votes
4 answers

iOS 7 UISearchDisplayController search bar disappears

I was recently updating my app and came across this issue. When i start typing in the search bar the search bar disappears and i can only see the table view. I can still keep on typing and the table view gets updated but i cannot see the search bar.…
Tarang
  • 626
  • 2
  • 8
  • 22
9
votes
2 answers

Getting notified when user presses "Search" on keyboard in UISearchDisplayController

I am using a UISearchDisplayController to let the user search through a list of buildings on a university campus. Sometimes, the user will know exactly what building they want, enter the building's number, and that building will then be the only…
Bryce Thomas
  • 10,479
  • 26
  • 77
  • 126
9
votes
2 answers

Howto implement UISearchDisplayController in a UIViewController without Interface Builder

I have a UIViewController which has a grouped UITableView as a property. I instantiate the UITableView in code and don't use IB. I would like to hook up a UISearchDisplayController to it but can't find any example how this could be done. This what I…
Oysio
  • 3,486
  • 6
  • 45
  • 54
9
votes
1 answer

UISearchDisplayController from a button not the default search field

I was wondering if its possible to activate a UISearchDisplayController from a button in the navigation bar rather than from the standard search bar that you get when you pull out the Search Bar Controller from there object library in Xcode. Like…
lateAtNight
  • 482
  • 4
  • 13
9
votes
3 answers

UISearchDisplayController - how to display search result with only by scope button selected but empty search string

The UISearchDisplayController is very handy and implementing search is pretty straightforward. However, I bump into problem when, in my app, I want to display search result with empty search string but selected scope button. It seems like it's a…
billibala
  • 321
  • 4
  • 14
9
votes
3 answers

Adding buttons inside UISearchBar

I want to add a button (bar) inside a UISearchbar and another one just outside the UISearchbar as shown in the image. Any help on this appreciated. Thanks in advance Naveen
Naveen Thunga
  • 3,675
  • 2
  • 24
  • 31
9
votes
1 answer

Extra space above search bar when UISearchDisplayController is active

I have a popover with a UITableViewController as the content view controller. The table view has a UISearchBar as its header view. Now, on iOS 6 everything looks good when the UISearchDisplayController becomes active. But, on iOS 7 there will be an…
Hejazi
  • 16,587
  • 9
  • 52
  • 67
9
votes
4 answers

UISearchBar linked with a UISearchDisplayController in the header of a UITableView in iOS7

I have a UISearchBar linked with a UISearchDisplayController in the header of a UITableView in iOS7. I set the UISearchBar with the style minimal. When the searchdisplaycontroller shows his table it has the behavior of the picture below. The table…
flopes
  • 1,345
  • 1
  • 14
  • 21
9
votes
1 answer

How can I filter UITableView with two predicates in IOS

I have tableView with searchDisplayController. In this TV i have to arrays (first/last names) I can filter this values by names, using predicate, with this code NSPredicate *predicate = [NSPredicate predicateWithFormat:@"self.firstName…
Arthur
  • 1,740
  • 3
  • 16
  • 36