Questions tagged [searchdisplaycontroller]

41 questions
41
votes
10 answers

UISearchDisplayController with no results tableView?

Usually, a UISearchDisplayController, when activated, dims the tableView and focuses the searchBar. As soon as you enter text into the searchBar, it creates a searchResultsTableView that displays between the searchBar and the keyboard. The…
Zargony
  • 9,615
  • 3
  • 44
  • 44
7
votes
2 answers

searchDisplayController: change the label "No Results"

how do I change the label "No Results", when using a searchDisplayController? Regards
Stefan
  • 28,843
  • 15
  • 64
  • 76
4
votes
1 answer

what is searchdisplaycontroller?

When I give IBOutlet objects in my ViewController, I could not find out them in InterfaceBuilder to link to the object which are in the view. After some time it comes automatically...(I have set correctly file owner) There is only one I am seeing…
user141302
4
votes
3 answers

iOS SearchDisplayController prevents tableview from background color change (background stays gray)

This might be a bug in iOS 7: I used storyboard to drag in Search Bar and Search Display Controller in my tableview controller. The background color of my tableview is altered after that. I am using an example from AppCoda's…
3
votes
1 answer

Emulate searchbar in Calendar app

I am trying to emulate the search bar in the Calendar app and finding it surprisingly difficult although many people have posed this question on SO and elsewhere and many half answers have been offered. (I need to support IOS 7). The main…
user1904273
  • 4,562
  • 11
  • 45
  • 96
3
votes
1 answer

What is the alternative for searchDisplayController in iOS 8?

This morning I changed my app's deployment target to 8.0. Unfortunately, searchDisplayController is deprecated in iOS 8.0. My question is what is the alternative for searchDisplayController if I want my app be able to continue work on both iOS 7.x…
David Liu
  • 16,374
  • 12
  • 37
  • 38
3
votes
2 answers

Proper instantiation of UISearchDisplayController

I did some searching and the answer is still unclear to me. I am trying to create an instance of a UISearchDisplayController inside a TableViewController (TVC). In the header of my TVC, I declared a searchDisplayController as a…
Jdizzle Foshizzle
  • 314
  • 1
  • 3
  • 18
2
votes
2 answers

How do I use a storyboard Dynamic Prototypes TableViewCell to format SearchDisplayController results

I created TableViewController subclass and used it with a storyboard. I created 1 Dynamic Prototype and used its Identifier value in the subclass. It works and displays the cells as it shows in the storyboard. But when I added the…
2
votes
1 answer

Searchbar disappears when typing

My application (iOS deployment target 8.2) shows a searchable table view. I use a Search Bar and Search Display Controller. The searching works (the table updates) but I have a very annoying visual bug that I can't seem to fix: As soon as the user…
TheNiers
  • 237
  • 2
  • 4
  • 15
2
votes
1 answer

searchDisplayController, UITableView, Core Data and Swift

Trying to search in the table with searchDisplayController. Data filtering configured, the search dialog works. Now I want to work with a method prepareForSegue for send current value indexPath to a new UIViewController: import UIKit import…
Alexey Nakhimov
  • 2,673
  • 8
  • 34
  • 49
2
votes
2 answers

Issue with animation of searchbar in navigationbar when searchDisplayController becomes active

When the searchbar becomes active it jumps. See animated GIF. Result: http://postimg.org/image/66bdqqgvb/ Searching for a solution on Stackoverflow I found the following setting: self.edgesForExtendedLayout = UIRectEdgeNone; Result:…
2
votes
1 answer

Resize SearchResultsTableView

I'm implementing SearchDisplayController in a ViewController. It's working propertly except for one thing: I'm controlling the searchResultTableView property to resize the tableView where the results are shown this control is done in the…
2
votes
4 answers

How to implement a search bar that stays always on top using UISearchDisplayController in iPhone SDK 3.0

The iPhone SDK 3.0 has this handy new class "UISearchDisplayController" which makes it easy to create a search bar, handling all the user input and displaying the search results. I am using it for my new app, but there is one thing i would like to…
2
votes
2 answers

Cocoa Touch - UISearchBar Keyboard - Hide 'Search' Button

On my iPhone app I'm using a UISearchBar (without a Search Display Controller). I have my own 'Search' button as a UIButton and therefore on the keyboard that pops up when editing begins on a UISearchBar I would like to constantly hide the 'Search'…
2
votes
2 answers

SearchDisplayController searching in multiple arrays

Okay, after long searching, hesitating and more searching I just can't seem to figure this out. I have a SearchDisplayController, and I have four different arrays where I am searching in using NSPredicate, because each UITableViewCell is made out of…
Prastow
  • 178
  • 1
  • 19
1
2 3