Questions tagged [uisearchresultscontroller]

62 questions
0
votes
0 answers

How to use searchController with searchResultsController?

I created a search controller and added a searchResultsController to it. MainController.swift let searchController = UISearchController(searchResultsController: SearchResultVC()) My search logic works within the updateSearchResults method and this…
0
votes
0 answers

UISearchController not displaying search bar correctly

I'm trying to set up a UISearchController with a custom UITableViewController for the results. In my main UITableViewController I have a segue from my main UITableViewController to a detail controller, if I pass in a model object to the detail…
Rizwan Saeed
  • 83
  • 1
  • 1
  • 7
0
votes
1 answer

How to search a string or character which is in [[String]] type

//Am not getting any search list of cells //when am searching am getting empty array every time. var actors = [["a0","b0","c0","d0"],["a1","b1","c1","d1"],["a2","b2","c2","d2"],["a3","b3","c3","d3"]] var filterArr:[[String]] = [] func…
0
votes
0 answers

Search Results segue to other View controller in swift

I am implementing search controller programatically on navigation bar it is working fine and showing result, if I can select the tableview cell(did select method) segue is working fine . when I select the searched result it is not segue to next view…
0
votes
1 answer

SearchResultsController appearing over UINavigationBar

I'd like to have a separate viewController as the searchResultsController however, I am getting unusual behaviour illustrated below. I am setting up searchController as such; func setUpSearchControllerAttributes() { searchController =…
0
votes
1 answer

Resetting the search query string in UISearchController programmatically

I am failing to reset/substitute the search query string programmatically. I was trying to modify the UISearchBar query string from within the UISearchControllerDelegate. I am using dictation input. When the command "delete" is said, the…
0
votes
0 answers

Odd UISearchController behavior on table view header

This is something I've done before that has worked perfectly, so I'm puzzled as to why it's not functioning correctly now. What I'm wanting to do is have a search bar in the header of my table view that doesn't move when it becomes active. I've…
MachTurtle
  • 220
  • 3
  • 10
0
votes
1 answer

How to set SearchBar to be active after navigating back from another view controller in iOS

How to set SearchBar to be active after navigating back from another view controller? Type the search string and click search button on search suggestion page, then this page popped by navigation controller. The search result page which was…
0
votes
0 answers

Swift Search Results segue to other View controller

When I search in my searchbar, I want to click on a result and then go to another view controller. I found a similar queston on this site (Swift Search Result Controller in search results segue to another view controller) but it didn't worked out…
0
votes
1 answer

iOS Search Bar Goes Over View

The current setup I have is a UIView over a map view that's meant to encapsulate the search bar (to make it look rounded). However, the first time I click on the search bar, it animates over the view for some reason, and then goes back to normal,…
0
votes
1 answer

Using the filter Function in Xcode with a NSMutableArray

I am trying to make an app, with a list of movie titles, with a search function, the list of movies is imported into the appellation via a text file, I am having issues using the filter function given in Xcode, I know it's meant to look something…
0
votes
0 answers

Using UISearchResultsUpdating with an NSMutableArray Xcode 7 and Swift

I have an NSMutableArray that has data which I want to search that data with the UISearchResultsUpdating. With the code I have in the function updateSearchResultsForSearchController, everything is working fine. However there is a problem that if I…
0
votes
1 answer

Autocomplete Search List issue In Swift

hello I have a very strange problem in my search functionality. I have successfully implemented the search functionality. I am getting a data from backend service. The problem is at some stage the data doesn't load up accurately in the suggestion…
0
votes
1 answer

Autocompleting searchBar

I am trying to implement a searchBar in my iOS App. I am searching country and city from the app. Country and city names are coming from the database. There are few problems which I am having is in my code. First right now my code successfully…
hellosheikh
  • 2,929
  • 8
  • 49
  • 115
0
votes
2 answers

How to show UISearchController in same view in tvOS?

I am trying to implement search in tvOS and somehow achieved to show controller in tvOS. The issue is that I know how to present the UISearchController but I want to show it on the same home screen. I am using a tab bar and I have a multiple menu,…
Yohan
  • 1,108
  • 9
  • 21