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

UISearchDisplayController changing row height

I've set my UITableView row height to in Interface Builder to 54.0. I have a UISearchDisplayController on that view. When the user taps the search bar in it, the table resizes properly. However, when they start typing (and actually doing the search)…
Steven Fisher
  • 44,462
  • 20
  • 138
  • 192
24
votes
4 answers

ios 5 UISearchDisplayController crash

I am implementing a UITableView with UISearchDisplayController in xcode 4.2. UITableView & UISearchDisplayController are created in StoryBoard. I set the Cell Identifier (SampleCell) for UITableView and access it like cell = [tableView…
moon
  • 1,392
  • 3
  • 15
  • 29
24
votes
5 answers

UIPageViewController prevents my table view from scrolling to top when tapping the status bar

I searched before posting this question, but couldn't find anything. I'm having a huge issue. I have a scrolling type UIPageViewController as the basis of my app, with 3 view controllers. One of the view controller's (listTableView) has a table view…
20
votes
3 answers

UISearchDisplayController and UITableView prototype cell crash

I have a UIViewController setup in a storyboard with a tableview and UISearchDisplayController. I am trying to use a custom prototype cell from self.tableview (which is connected to main tableview in the storyboard). It works fine if self.tableview…
mootymoots
  • 4,545
  • 9
  • 46
  • 74
19
votes
8 answers

UISearchBar animation issue

I have a UIViewController in which I want to show a tableview with the serchBar. //viewDidLoad _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, …
luca
  • 36,606
  • 27
  • 86
  • 125
19
votes
5 answers

UISearchDisplayController with displaysSearchBarInNavigationBar pushes result view down with navigationBar.translucent = false

I am using a UISearchDisplayController with the new ios 7 feature displaysSearchBarInNavigationBar and opaque navigation bars. The search display controller seems to position it's view incorrectly. I tried plugging in to delegate methods and…
Joseph Rodriguez
  • 1,135
  • 9
  • 14
17
votes
7 answers

UISearchDisplayController causes crash after viewDidUnload

I have a project using StoryBoards and UISearchDisplayController used in the context of a UINavigationController, that appears in the root viewcontroller. When I push a new view controller onto the stack and I cause a simulated memory warning (or…
Wayne Hartman
  • 18,369
  • 7
  • 84
  • 116
17
votes
2 answers

UISearchDisplayController - Method for when cancel button is clicked

I have a UISearchDisplayController that shows the cancel button. I would like to call a method when a user clicks the cancel button. Is there a way to do this?
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
17
votes
9 answers

Strange UISearchDisplayController view offset behavior in iOS 7 when embedded in navigation bar

I am building an iOS 7-only app. I am trying to set a UISearchDisplayController into the navigation bar. I have it set up like this: In the storyboard, I added a "Search Bar and Search Display Controller" to my view controller's view, and set it at…
16
votes
5 answers

Keeping UINavigationController's navigationBar hidden after UISearchDisplayController selection

I have a UISearchDisplayController setup with a UITableViewController which is nested inside a UINavigationController. When a selection of a cell is made, UITableView's didSelectRowAtIndexPath method is triggered, which pushes a new view to the…
peppy
  • 586
  • 5
  • 11
15
votes
9 answers

Reloading UITableView behind UISearchDisplayController

I've run into this really strange phenomenon that I can't quite figure out. I have a UITableViewController that manages a UITableView. Pretty simple. I also have a UISearchDisplayController for searching the contents of the table view. The…
15
votes
3 answers

How can I use UISearchDisplayController with UICollectionViewController?

If you use a UISearchDisplayController with a UITableViewController, when the user taps the search bar it animates up to replace the nav bar. I'd like to get that same effect when using a UISearchBar at the top of a UICollectionViewController. Any…
14
votes
1 answer

UISearchController doesn't hide view when pushed

I am using UISearchController to display a search bar and results within a UITableView. I managed to set it up correctly, but when I search the results and then select one of the rows in the tableview, and push a new view controller to the…
Z S
  • 7,039
  • 12
  • 53
  • 105
14
votes
4 answers

Force scope bar below UISearchBar

I have a UISearchBar and UISearchDisplayController, everything works great but my scope selector displays beside the text field instead of below it. I know that this is the expected action when the device is in landscape, but since I have the…
axiixc
  • 1,962
  • 18
  • 25
14
votes
3 answers

How to use NSFetchedResultsController and UISearchDisplayController

I've been creating an iPhone App using Core Data. First of all, does it make sense to use an NSFetchedResultsController and a UISearchDisplayController together to fetch the result? Would you recommend something else? I've been trying quite long…
1
2
3
54 55