FAQ Database Discussion Community


Custom class for UISearchDisplayController's table view

ios,uitableview,uisearchbar,uisearchdisplaycontroller
I need to make the table view inside the UISearchDisplayController class to be a custom class which extends from UITableView. I'm using this pod: https://github.com/OliverLetterer/SLExpandableTableView, but I can't seem to make it work when using a UISearchBar and search results. The class I want use for the table view it's...

Can't remove lines behind SearchResultsTableView cells

objective-c,uisearchdisplaycontroller
I'm creating an iphone application using Objective-C/Xcode. I have a setup where when I click the search box, the search display view shows up and as I type into the searchbox, the searchDisplayController loads the searchResultsTableView cells with rows consisting of autocomplete terms. because the results cells are a lot...

Slow UISearchDisplayController with Core Data

ios,iphone,core-data,nsfetchedresultscontrolle,uisearchdisplaycontroller
I have a TableViewController displaying like 40 000 rows from Core Data with NSFetchedResultsController. I implemented a live search with a UISearchDisplayController (support for IOS 7). It's working but typing on the keyboard when searching is very slow... I'd really appreciate if someone could point me to the right direction...

UISearchController created for iOS 8 not supporting for previous versions

ios,uisearchbar,uisearchdisplaycontroller,uisearchcontroller,uisearchbardisplaycontrol
Hi I had created an UISearchController to search a tableview in my app, as I came to know that UISearchDisplay Controller methods are being deprecated for iOS 8, now everything works fine in the 8.1 simulator, when I was trying to run my App in iPad which is of ios...

Implement Search bar and search display for the table view with sections

uitableview,swift,uisearchbar,uisearchdisplaycontroller,xcode6.3
I am trying to implement search bar with search display feature in swift for the table view given below. Screenshot of the table view I am getting issue because my string array is in the following format. ["section name1" : ["list1", "list2"] ,"section name2" : ["list3", "list4"]] I have added...

xcode 6.3 deprecated UIsearchDisplayController, how to silence warning

swift,deprecated,uisearchdisplaycontroller,xcode6.3
This line has caused compiler Warnings of searchDisplayController deprecation: as of Xcode 6.3 update. ISSUE LINE if tableView == self.searchDisplayController!.searchResultsTableView IN func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { if tableView == self.searchDisplayController!.searchResultsTableView {return self.filteredPlayers.count} else {return self.results.count;} } I resolved this warning in other lines similar in format...

How to implement search controller for both iOS 7 & iOS 8

swift,ios7,ios8,uisearchdisplaycontroller,uisearchcontroller
i'm targeting my app should run on both iOS 7 & iOS 8. Since UISearchDisplayController is deprecated in iOS 8, i used UISearchController for iOS 8. But it's not working in iOS 7. If i use UISearchDisplayController then it will work in iOS 7. But what is best way to...

UISearchBar: search results hidden behind the searchbar

ios,swift,uisearchbar,uisearchdisplaycontroller
I have implemented an empty ViewController i.e SearchViewController with a SearchBar in it. Ans as i am searching from a web service, i want the search results to be displayed only when the user presses the search button. That has been implemented. Bt the problem is, the results appear in...

iOS 8 - Search display controller shows white space at right

ios,swift,uisearchdisplaycontroller
Using search display controller in a app, it works fine in iOS 7 but in iOS 8 it shows a white space at right side of search display table as follows Tried a lot but not getting any solution....