uisearchcontroller Questions

3

I have UISearchController and a UITableView. The Code in viewDidLoad is: self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil]; self.searchController.searchResu...
Thundershower asked 18/11, 2015 at 19:47

5

Solved

I have implemented the UISearchController and it is working great except... When I click on the Search Bar the Navigation Bar disappears nicely as expected. When I rotate the phone to landscape vi...
Bughouse asked 17/2, 2015 at 0:57

1

I have implemented 3D Touch with uicollectionview, it worked fine. But when the uisearchController is active, the 3D Touch doesn't work. The uisearchController uses the collectionView to show the r...
Untruthful asked 23/10, 2017 at 23:35

3

I have added search bar to my tableview.But when i search some thing in my table view and if i press cancel default button for search bar to dismiss my keyboard means my app getting crash. Crash r...
Chronister asked 11/5, 2016 at 5:28

1

Solved

I'm adding search controller like this: viewController.navigationItem.searchController = searchController viewController.navigationItem.hidesSearchBarWhenScrolling = false viewController.define...
Lingle asked 27/12, 2017 at 15:10

2

I am pushing a viewController where I want a searchBar, but search bar is not showing at all. Below is the code. Am I missing something? var searchController = UISearchController(searchResultsCont...
Condescendence asked 4/7, 2018 at 15:53

5

Solved

I have a SearchController's search bar inserted programatically into a UITableView's tableHeaderView. When I pull up to view the search bar or refresh the table, I get this weird darker gray that y...
Grosmark asked 16/7, 2015 at 19:55

2

Solved

When i remove the searchController from navigationItem by setting 'nil'. Empty space is left behind where it used to be instead of collapsing. Tried calling, searchController.dismiss() navigation...
Bebel asked 2/10, 2017 at 20:4

4

I have read similar problems and solutions on SO. But none seems to solve my problem. I am using Custom Search Controller and Custom Search Bar and func updateSearchResults(for searchController: UI...
Impervious asked 10/1, 2017 at 3:46

5

Solved

I have a view controller with a table view and a UISearchController. When running the app, I found that the search bar overlaps the content when it is active. What do I need to adjust to make the c...

2

So, I am currently trying to replace the depricated searchDisplayController in one of my projects with UISearchController and I am running into this problem. If there are no results in the search...
Callery asked 5/5, 2015 at 18:7

1

How does UISearchController do everything it does? How does it transform the UISearchBar into a navigation-bar-like view? How does it put the UISearchBar into another view hierarchy and restore i...
Selfexamination asked 20/3, 2015 at 23:11

2

Solved

I have just implemented a UISearchController in a regular UIViewController, and I have a kind of weird issue. I have a UIView that is adapted exactly to the size I want my UISearchBar to take. On ...
Mcadoo asked 7/4, 2017 at 12:36

3

Solved

Is it possible to put UISearchBar of UISearchController somewhere other than header view of UITableView? In the apple's sample code for UISearchController, following is used. [self.searchControll...
Granvillegranvillebarker asked 22/3, 2015 at 8:58

4

Solved

I'm transitioning from a view with a large style UINavigationItem into a view that has a large style UINavigationItem and a UISearchController. I've customized the background colour of the UINaviga...
Chengtu asked 15/9, 2018 at 16:47

1

So I have a standard setup for setting up a search view in my tvOS app. let storyboard = UIStoryboard(name: "Main", bundle: nil) guard let resultsController = storyboard.instantiateViewControllerW...

1

Solved

When I push another controller on to the stack (When having a Search Controller) I get a black block under the search bar. I have set the background colour to white on all the below; Search Contr...

13

Solved

The structure: View1 (click a button) -> present modally (MyModalView: UITableViewController) MyModalView has UISearchController embedded. The searchBar of UISearchController is placed in MyModal...
Mordred asked 21/9, 2015 at 4:13

9

Solved

My goal is to prevent the cancel button from appearing in a search bar in a UISearchController. I started with Apple's Table Search with UISearchController sample code and hid the cancel button as ...
Schnitzler asked 5/11, 2014 at 23:41

8

I have a UISearchController with a UITableViewController as a searchResultsController, the UISearchBar of this searchController is set to be in the tableHeaderView of my current tableView displayed...
Crudden asked 6/10, 2014 at 18:41

1

Strange things seem to happen when using the new iOS 11 navigationItem.searchController method on a detail view of a UISplitViewController. The searchBar partly appears as a blank space on the fi...
Striction asked 24/9, 2017 at 6:12

9

I had been using the following code prior to iOS 11 to customize the appearance of the UISearchController search bar: var searchController = UISearchController(searchResultsController: nil) search...
Tackling asked 13/8, 2017 at 17:43

7

Referred here and here. No answer in first link. In the second link, though the answer is not accepted, but the link to apple developer forum gives error. Before iOS 11 : iOS 11 : Note ...
Farias asked 22/9, 2017 at 11:55

3

Solved

I've recently added a UISearchController to my table view and I'm experiencing an animation issue. When the search bar is tapped and becomes active, the table view jumps up to meet the search contr...
Kast asked 4/3, 2018 at 17:32

1

Solved

I am new to Ios develpomment, I added a Searchbar into the navigation item What I would like to implement is when I scroll Up the tableview I want to hide the Searchbar and when show it when I scr...
Haro asked 7/3, 2018 at 11:31

© 2022 - 2024 — McMap. All rights reserved.