uisearchresultscontroller

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

本秂侑毒 提交于 2019-12-21 17:55:48
问题 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 *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"HoCell"; Ho *cell; Ho *item; if (tableView == self.searchDisplayController.searchResultsTableView) { if (cell == nil) { cell = [[Ho

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

三世轮回 提交于 2019-12-20 10:44:33
问题 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 , etc. I found this post EXTREMELY helpful, but after modeling my TVC after this project, I find "all the lights are on, but nobody's home". I can search, predicate is created in searchBar , add, remove, etc. but the cells don't update for the search.

updatesearchresultsforsearchcontroller not called

我是研究僧i 提交于 2019-12-11 02:31:38
问题 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 = UINavigationBar(frame: CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.width, height: 44)) var locationSearchController: UISearchController! override func viewDidLoad() { super.viewDidLoad() locationSearchController = UISearchController

search bar getting disappeared in ios UIsearchcontroller

一世执手 提交于 2019-12-08 04:26:02
问题 I am using UISearchController and when I click on the searchbar , I get animation as if the searchbar is going to the navigation bar of the presented searchcontroller with fading animation but it disappears and the keyboard presented is staying there. In viewcontroller.m, viewdidload method, relevant part: UIView *searchView = [[UIView alloc]initWithFrame:CGRectZero]; searchResultsViewController =[[SearchResultsViewController alloc]initWithNibName:@"SearchResultsViewController" bundle:nil];

search bar getting disappeared in ios UIsearchcontroller

时间秒杀一切 提交于 2019-12-06 22:27:28
I am using UISearchController and when I click on the searchbar , I get animation as if the searchbar is going to the navigation bar of the presented searchcontroller with fading animation but it disappears and the keyboard presented is staying there. In viewcontroller.m, viewdidload method, relevant part: UIView *searchView = [[UIView alloc]initWithFrame:CGRectZero]; searchResultsViewController =[[SearchResultsViewController alloc]initWithNibName:@"SearchResultsViewController" bundle:nil]; self.searchController =[[UISearchController alloc]initWithSearchResultsController:nil]; self

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

拟墨画扇 提交于 2019-12-03 00:24:08
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 , etc. I found this post EXTREMELY helpful , but after modeling my TVC after this project, I find "all the lights are on, but nobody's home". I can search, predicate is created in searchBar , add, remove, etc. but the cells don't update for the search. I'm missing something, but I don't know what. Here are the relevant portions of my code. class

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

吃可爱长大的小学妹 提交于 2019-11-28 03:35:26
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 seeing is that after the content has populated the searchResultsTableView , it seems as though when the keyboard is initially hidden, the contentSize of the searchResultsTableView is much larger than the data, and actually seems to be the size of the keyboard. When I enter the search bar, and show the keyboard and hit 'Search' again (just to hide

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

╄→гoц情女王★ 提交于 2019-11-27 00:10:16
问题 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 seeing is that after the content has populated the searchResultsTableView , it seems as though when the keyboard is initially hidden, the contentSize of the searchResultsTableView is much larger than the data, and actually seems to be the size of