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

Search Display Controller tableview

I have a Search Bar and Search Display controller that I dragged from the Objects list on the right of Interface Builder. I placed this object on my DetailViewController's view. I set the delegate to be the DetailViewController. I have code in the…
user439441
0
votes
1 answer

Placed Search Bar in Table View. Selecting result gives wrong Detail View?

I've created a TableView Controller that contains custom cells, and is populated with data from a MySQL database. Everything works great. I added a search bar, and the search also works great. However, when I select the search results, it brings me…
0
votes
2 answers

iOS6, StoryBoards: UISearchDisplayController returns wrong custom UICell height

I use custom cells in storyboard with height set to 57. While searching in tableView,UISearchDisplayController returns my custom cell but the height is wrong. Code: - (UITableViewCell *)tableView:(UITableView *)tableView…
NCFUSN
  • 1,624
  • 4
  • 28
  • 44
0
votes
2 answers

Array out of bounds error when using UISearchDisplayController

I have a UISearchDisplayController on a UITableView. The UITableView grabs JSON data from a server, breaks it down, and an object class takes that data and creates objects. It adds the Objects to a Mutable array to then use as the datasource for the…
Anthony
  • 648
  • 1
  • 7
  • 22
0
votes
1 answer

Getting multiple table view instances to match

I'm trying to get the cells returned within my searchResultsTableView to look just like those in the "regular", non-search table view. Here's my regular view. The first time you search, the results are styled exactly like the "regular" table view.…
ele
  • 6,021
  • 5
  • 25
  • 35
0
votes
1 answer

UISearchBar: FilterContentForSearchText not working on a UITableView (results not shown on table)

PROBLEM PARTLY SOLVED, SEE END OF POST: Showing search results on a UITableView not working. The table stays blank, doesn't show any results but the searching must work because when I search for something not in the table I get immediately "No…
user1010563
0
votes
0 answers

UISearchDisplayController: Add multiple filters to an existing filter

I am using a UISearchDisplayController the default way to filter the cells of a UITableViewController by its text values (e.g. to show only the cells which start with the letters 'ab'). The values in the cells of the table view are filled by a…
AlexR
  • 5,514
  • 9
  • 75
  • 130
0
votes
1 answer

Two UISearchBars showing up in a view controller when only one is instantiated

I have two search bars shhowing up in a view controller. It's strange because I have the same exact code in another vc and it works fine. (the search bar in the background shouldn't be there) here's a screenshot: I added the delegates:…
hanumanDev
  • 6,592
  • 11
  • 82
  • 146
0
votes
1 answer

Can't get search bar to display in iphone application

I've trying to get a search bar to display in my application. I'm following the example show in the TableSearch sample application. I've more or less implemented it exactly the same way apart from the data. I however can never seem to get the actual…
Sway
  • 1,647
  • 3
  • 16
  • 19
0
votes
1 answer

How to preload UISearchDisplayController with a search string

I'm trying to preload UISearchBar with a searchString. In the current set up. I'm using UISearchDisplayController in the UITableViewController. The First approach I use is set the search string in the following method: - (void)…
Eugene
  • 223
  • 3
  • 6
0
votes
2 answers

Unable to change color of UISearchDisplayController

I'm using UISearchDisplayControlleron UInavigationBar but the background color of UISearchDisplayController is not matching the color of uinavigationbar. i used the following code in ma ViewDidLoad but no change I'm unable to change the color of…
Muddu Patil
  • 713
  • 1
  • 11
  • 24
0
votes
0 answers

Display search results in full screen with a custom control

I need to display search results for my custom control and I'm not so sure what is the best way to make this configurable. Basically the control is similar to the UITextField but with more visualization. When the user enters some text to the field,…
mkko
  • 4,262
  • 3
  • 25
  • 29
0
votes
1 answer

-[__NSCFConstantString objectForKey:]: unrecognized selector sent to instance 0x21eb4

I am currently trying to get a search display controller to segue to a detail view but not having much luck! I have the search working and the mainTableView(original table view) seguing with the title and image but it crashes when I try to segue…
0
votes
1 answer

App crashes when attempting to type on UISearchDisplayController

For some reason, my app crashes when ever I attempt to type on UISearchDisplayController. I have used the code needed from here, but I can't seem to find the solution. Here is the code: ViewController.h // #import SideSwipeTableViewController.h //…
chrisjr
  • 760
  • 3
  • 11
  • 18
0
votes
2 answers

Activating UISearchBar upon selecting a Tab Bar Item - Help or Hindrance?

I'm working on an app where I've been asked to add a UITabBarItem to our app's Tab Bar with its own dedicated Search function. This is in addition to the built-in searches already throughout the app (by tapping other UITabBarItems and searching…