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

Using becomeFirstResponder causes cancel button to not work

I have a UISearchDisplayController (searchDisplayCtr) and a UISearchBar (searchBar). I am trying to give focus to the search bar and bring up the keyboard when I click the search icon in the alphabet scroll on the right. If I…
0
votes
1 answer

Repopulating UITableView after search

I'm using single NSFetchedResultController to populate both self.tableView and UISearchDisplayControler.tableView. After using search bar and dismissing it if I select any row in the self.tableView I get this error: Terminating app due to uncaught…
0
votes
1 answer

Search bar partially disappears when switching views in iOS 7

We have a UISearchBar backed by a UISearchDisplayController in our app. Changing screens with the search bar hidden partway under the header causes that portion of the bar to be gone when the user returns, revealing the search bar's background.…
aednichols
  • 2,292
  • 2
  • 19
  • 28
0
votes
1 answer

One NSFetchedResultController for UITableview and UISearchDisplayController

Maybe it's a silly question but I have a feeling that I can improve my project or at least make it more readable. Here's the deal. I have a UITableView populated with data from server. For everything I use MagicalRecord and for dealing with…
0
votes
1 answer

UISearchDisplayController won't show up

I'm confused right now. I created a UIBarButtonSystemItemSearch and assigned it to self.navigationItem.rightBarButtonItem which shows up like it should: When initializing the item I assign an action that should be executed and it does: -…
MrBr
  • 1,884
  • 2
  • 24
  • 38
0
votes
1 answer

UISearchDisplayController strange animation and offset

I have created a UITableViewController and added a UISearchDisplayController programmatically. There's no storyboard or nib file as I am doing everything programmatically. Everything seems to work perfectly except when I click on the search bar, it…
Kushagra
  • 536
  • 2
  • 12
0
votes
1 answer

UISearchDisplayController Results Table Overlapping UISearchBar

I'm having a strange issue with my UISearchDisplayController. When the search display activates the frame of the background fading view and the tableview are incorrectly overlapping the UISearchBar. It appears the results tableview is not taking the…
Jim Jeffers
  • 17,572
  • 4
  • 41
  • 49
0
votes
2 answers

UINavigationController not work with SearchDisplay Controller

In my project using Side menu. It is ready template from gitHub , but the problem is that somtimes searchDisplay controller is work and some times give error , What is actual Problem i am not understad... please help me side menu template contain…
0
votes
1 answer

Hide the keyboard for UITextField in the same UIViewController with UISearchbarDisplayController

How can I hide the keyboard only for specific UITextFields? I have a lot of UITextField in a View Controller, which has also a SearchbarDisplayController. I tried to use this but it blocks the UISearchbarDisplayController's job. Thank you. For more…
0
votes
2 answers

UISearchDisplayController delegate methods not being called

I am trying to gain some knowledge on UISearchDisplayController and going through some tutorial with examples, I have the below class ready with a search bar and table view with data on it. Header file: #import @interface MyClass…
tech_human
  • 6,592
  • 16
  • 65
  • 107
0
votes
1 answer

Stop UISearchDisplayController from showing empty cells

I've implemented a UISearchDisplayController on a fairly standard tableview (same datasource for table + search). The problem I am having is when the results don't fill the screen there are "pseudo" rows below the actual results. I was able to set…
owenfi
  • 2,471
  • 1
  • 24
  • 37
0
votes
3 answers

UISearchBarController not hide after returned button called

I have a viewController with a tableViewController inside. My problem is that the SearchBar does not disappear when I press the return button so what does it when I press the cancel button. Have you an idea of the problem? Thanks
0
votes
0 answers

SearchBar in Navigation Bar not working

For reference, I'm running the below on an iPad with iOS 7.0.4. The vc is a presented modally as a form page. The search vc is the second vc on the navigation stack. My table is setup with a search bar and search display controller and is working…
SteveM
  • 347
  • 1
  • 5
  • 17
0
votes
2 answers

SearchBar in Navigation Bar in iOS7

I have a tableview containing all the countries and their flags. I've been working to add a search bar and had it all working until I decided to move the search bar into the navigation bar allowed in iOS7 (for my purposes, that layout works very…
SteveM
  • 347
  • 1
  • 5
  • 17
0
votes
1 answer

Discussion: Best way to implementing a custom search result table view cell

I am trying to implementing a custom search result table view cell. I have seen people discussing things in threads like Here. Finally, I have decided a way to implement this. As you can see, I have created to reusable cell in side my…
TypingPanda
  • 1,607
  • 3
  • 19
  • 32