Questions tagged [uisearchresultscontroller]

62 questions
27
votes
2 answers

UISearchDisplayController's searchResultsTableView's ContentSize is incorrect. Bug in iOS 7?

The below problem only occurs on an iOS 6.0/6.1 application running on an iOS 7.0+ device. So I have a UISearchDisplayController that searches our API and returns data. This all works, and everything is displayed as we want. The only problem we are…
9
votes
1 answer

Swift UISearchController wired up in Core Data Project, app runs, but search not updating

I have been wrestling the past few days with creating a filter in a Swift project for a TableViewController that uses Core Data. I finally figured out I need to use a UISearchController, create an NSPredicate for the searchController.searchBar,…
Adrian
  • 16,233
  • 18
  • 112
  • 180
8
votes
1 answer

UISearchBar in a UICollectionView disappears when using UISearchDisplayController

I have a UISearchBar added as a subview to a UICollectionView, and attached to a UISearchDisplayController. I set it up in viewDidLoad: self.searchController = [[UISearchDisplayController alloc] initWithSearchBar:self.searchBar …
Hesham
  • 5,294
  • 3
  • 34
  • 48
7
votes
2 answers

StatusBar in searchController and searchResultsController problems : iOS 8

Hi, here is my problem: In my AppDeleagate's didFinishLaunchingWithOptions: method i have a method [self configureUINavigationControllerStlyle]; which configures the status bar and all the navigation bar appearance of my app (I have…
6
votes
2 answers

Search Bar with prepareForSegue for DetailViewController

I'm implementing the search bar for my project. The search part is ok. I can display the raw data and filter the data with the search text. When I tap on the cell of the search result tableView, it didn't transition to the detail view. But for the…
5
votes
1 answer

updatesearchresultsforsearchcontroller not called

Does anyone know why its not being called here? Thanks. I think I set up the delegate correctly. class LocationSearchController: UIViewController, UISearchResultsUpdating, UINavigationBarDelegate, UISearchControllerDelegate { let navigationBar =…
4
votes
3 answers

How can i use prototype cell in storyboard with search result controller

I have tableview with search result controller when search in search bar get this error indicate that there is no cell and get the below error .How can create my prototype cell in this method CellForRowAtIndexPath Code : - (UITableViewCell…
wod
  • 812
  • 1
  • 10
  • 23
3
votes
2 answers

UISearchBar's height is incorrect when presenting search result controller

I have a search bar in tableView's header view, and I don't change the height of it(default is 56pt). When search bar is active and its position goes top of the screen, it's height becomes 50pt. It will both happen on iPhone or simulator, version…
3
votes
3 answers

Could not cast value of type 'NSNull' to 'NSString'

I am having a very weird problem which I am not able to figure it out of what is going wrong here. Here is my code func updateSearchResultsForSearchController(searchController: UISearchController) { filterTableData.removeAll(keepCapacity:…
hellosheikh
  • 2,929
  • 8
  • 49
  • 115
2
votes
1 answer

How to show UISearchToken in suggested searches list when user taps on searchbar?

Apple has announced new UIsearch bar api in WWDC 2019 : Modernizing Your UI for iOS 13. There we got to know new api for adding search tokens in search bar. but I wonder how we can achieve the representation of suggested searches as it's attached…
Nitesh
  • 1,924
  • 21
  • 31
2
votes
0 answers

Create to create a UISearchResultsUpdating view controller in Swift?

I am trying to create a UISearchResultsUpdating tableview controller programmatically using Swift. The updateSearchResults doesn't get called, even though I've set the tableview controller as the searchResultsUpdater and searchResultsController for…
ielyamani
  • 17,807
  • 10
  • 55
  • 90
2
votes
1 answer

how to hide the navigation bar after dismissing from searchController

I have two viewControllers ControllerA and ControllerB. Both doesn't have NavigationBar as I have hided the navigationBar in both the controllers. On ControllerB there is a a tableview and on top of that is a searchBar. On selection of any tablerow…
2
votes
0 answers

Search Bar controller in TableView

Hello I am trying to implement a SearchBarController but If I type something in the search bar data doesn't comes up according to the letters typed. Here is my code class CountriesTableViewController: UITableViewController, UISearchResultsUpdating…
2
votes
2 answers

How to stop UISearchBar from Scrolling with UITableview in iOS 8

I'm using UISearchBar , UISearchController and UISearchResultsController and can't figure out, how to stop UISearchBar from Scrolling with UITableview in iOS 8 Didn't find the answer that works.
Adelmaer
  • 2,209
  • 3
  • 22
  • 45
2
votes
1 answer

UISearchBar in UINavigationController introduces ~60px offset in SearchResultsTable

As soon as I display my search bar in the navigation controller, the behavior of the search results table changes - the table content is offset vertically by about 60px. Changing the table's contentOffset on the delegate ResultsWill/Did Appear…
1
2 3 4 5