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
8
votes
2 answers

iOS 7 UISearchDisplayController Animation Glitches

I'm trying to add searching to my UITableViewController via UISearchDisplayController, however I'm seeing a very weird animation glitch when searching begins and ends. On iPhone, the animation into the navigation bar works fine. However, when ending…
Rick
  • 847
  • 8
  • 12
8
votes
2 answers

UISearchDisplayController tableview content offset is incorrect after keyboard hide

I've got a UISearchDisplayController and it displays results in a tableview. When I try scroll the tableview, the contentsize is exactly _keyboardHeight taller than it should be. This results in a false bottom offset. There are > 50 items in the…
Zayin Krige
  • 3,229
  • 1
  • 35
  • 34
7
votes
3 answers

resize UISearchDisplayController dimmed black overlay

anybody know how to resize the dimmed black overly, once you clicked the search bar ? i having problem when i clicked cancelled the tableview will expend then animated to disappear. i using this to resize my result…
Desmond
  • 5,001
  • 14
  • 56
  • 115
7
votes
4 answers

UISearchDisplayController with UITableViewController

I have a UITableViewController, in which I added a UISearchBar as the tableHeaderView using Interface Builder. Then I added a UISearchDisplayController in the nib, and set up all the connections (delegate, searchResultsDelegate,…
ySgPjx
  • 10,165
  • 7
  • 61
  • 78
7
votes
5 answers

UISearchDisplayContoller – can't prevent table reload on typing in search bar

I'm trying to set up a search display controller to handle async results from a web service. I've got the basic bits in place but have run into a really strange issue that I can't figure out. Seems like to rig up the search display controller for…
Cliff W
  • 2,275
  • 3
  • 15
  • 6
7
votes
4 answers

Why UISearchBar and its scope buttons are shown in one line?

I have seen Apple's example "TableSearch" that when touched its scope buttons come below the search bar. http://developer.apple.com/iphone/library/samplecode/TableSearch/Introduction/Intro.html But when I make my own it looks good at first but when…
nacho4d
  • 43,720
  • 45
  • 157
  • 240
7
votes
3 answers

search Display Controller is Deprecated in iOS8

I am getting the above warning message when trying to run my code. NSDictionary *tempDictionary = nil; if (self.tableView == self.searchDisplayController.searchResultsTableView) { tempDictionary = [filteredCompanyArray…
Tunde Dev
  • 163
  • 1
  • 1
  • 10
7
votes
3 answers

How To Replace SearchDisplayController (Deprecated in IOS 8) by UIsearchController method

I'm obviously still new to Xcode. So SeacrhDisplayController is deprecated in iOS 8 and i don't know how to implement UIsearchController on tableview. I have googled about it, but i don't see any particular or clear tutorials for this. Here is my…
7
votes
2 answers

UISearchDisplayController not working when created in code?

I'm working on a tab bar application and one of the tabs has a UISearchDisplayController hooked up to a UISearchBar. It's all connected up in the NIB and is working. When I tap the search bar, the Scope and Cancel buttons fly in etc, and the search…
7
votes
1 answer

How to keep text in search bar when dismiss UISearchDisplayController

I'm using a UISearchDisplayController in my app. When the user selects an item in the search results returned I deactivate the UISearchDisplayController. Deactivating the controller clears the text the user has typed. I want to keep it there. I try…
7
votes
2 answers

Search Bar with Maps app behavior (navigation bar full width when selected)

I'm trying to display a search bar that would have exactly the same behavior as the one in native Maps app. I mean: search bar in the title view of my navigation bar when selected, the search bar occupies the full width of my navigation bar and I…
7
votes
3 answers

Having a zombie issue on UISearchDisplayController

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…
7
votes
1 answer

UISearchbar cancel button custom image

I have set background image for searchbar and search field using the code below. I am using Xcode5 DP2 and ios 7. [[UISearchBar appearance] setSearchFieldBackgroundImage:[UIImage imageNamed:@"fieldBg"] forState:UIControlStateNormal]; [[UISearchBar…
7
votes
7 answers

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

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.…
Massimo Cafaro
  • 25,429
  • 15
  • 79
  • 93
6
votes
1 answer

UISearchDisplayController—why does my search result view contain empty cells?

I am about to go out of my mind here, in my Core Data databse I have a lot of users, i have hooked the database up to a tableviewcontroller via NSFetchedResultController, and when the view loads, I see all my users, and i can perform a push to a…