Questions tagged [uisearchresultscontroller]
62 questions
1
vote
0 answers
UISearchDisplay: searchBar expands automatically
I've implemented UISearchBarDisplayController in my project. It works fine with table and search results. Problem start at my search bar's width, it is 300px, and it gets wider in
as I touch on it, also when I touch cancel Button, It re-sizes…

Haqn
- 47
- 6
1
vote
1 answer
Animations with safeAreaLayoutGuide (Swift 5)
I would like a smooth animation of this view whenever the search bar is selected and deselected. Right now it's choppy:
Heres my code below in the searchResultsUpdater. From what I understand, these functions should handle the animations, I'm not…

jmsapps
- 388
- 2
- 17
1
vote
2 answers
Why is my UISearchController slow?
I have a UISearchResultsController which is filtering my NSFetchedResultsController and putting the filtered data into an array. Currently, I use an NSPredicate to take the search bar content and apply the filter. Here's my predicate:
[filteredArray…

Moshe
- 57,511
- 78
- 272
- 425
1
vote
0 answers
searchBar textDidChange not being called
I know that this is somewhat a common question, but I am trying to call the textDidChange function in my searchBar delegate. I am able to call the updateSearchResults func, but for some reason I am not able to call textDidChange (the print statement…

user3708224
- 1,229
- 4
- 19
- 37
1
vote
2 answers
UISearch is not Working in JSON api UITable View
All
I am trying to develop an app. Now i need to search the video list using UISearch View.
here is my code. I can see the search bar but it's not working.
import UIKit
import GoogleMobileAds
class ViewController: UIViewController,…

Sejuti Saha
- 43
- 4
1
vote
1 answer
UISearchController.isActive is showing false while editing in searchbar?
I have added a search bar above a collection view controller. On activating the search controller the UISearchcontroller.isActive is returning "true" but while editing it's returning "false". But in tableview controller the same implementation…

Chowdhury Md Rajib Sarwar
- 1,787
- 2
- 23
- 30
1
vote
1 answer
Filtering the results on a UICollectionview in Swift 3 not working?
First loading with itemlist is working fine but after filter the collection view is not updating. I have added a search bar and trying to filter the result but UICollectionview failed to update view.
var resultSearchController =…

Chowdhury Md Rajib Sarwar
- 1,787
- 2
- 23
- 30
1
vote
1 answer
How to show different searchResultsController in UISearchController
I am using UISearchController (not UISearchDisplayController), i wanted to show a separate view when search is active. I dont want to use the current view.
Tried with self.searchController = UISearchController(searchResultsController:…

Stephen
- 3,359
- 4
- 20
- 30
1
vote
0 answers
UISearchResultsUpdating and MPMediaItem
I'm having some problems when searching MPMediaItems. The code below will present the view and filter results. It will not clear the results when the search is cancelled (subsequent searches only add criteria to the already filtered data), change…

rocketman240
- 119
- 12
1
vote
2 answers
UISearchController does not delete the result when I delete them
I implemented UISearchController in my app to search for users to follow and unfollow. I am using swift and Parse as a backend. The problem is, whenever I want to type something and then delete it, it keeps the retrieved results and does not delete…

Amal Nasir
- 164
- 15
1
vote
2 answers
UISearchResultsTableView doesn't appear when UISearchBar becomes active
I need my searchBar to display search results when searchbar's textfield becomes active. I use
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar
call, but have no object to show UISearchResultsTableView at once.
It shows only when…

Aleks
- 121
- 1
- 7
1
vote
1 answer
search bar getting disappeared in ios UIsearchcontroller
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…

vivek
- 45
- 1
- 7
1
vote
0 answers
Add gestures to UISearchResults UITableView
Currently my app has gestures, if you hold down on a UITableView cell you edit the object in the cell, if you tap the cell you view the object in the cell. That part works just fine but when the user uses the UISearchBar the results table does not…

OscarTheGrouch
- 2,374
- 4
- 28
- 39
1
vote
1 answer
Display a custom background picture in UISearchResultsTableView in iOS
Currently I have this code that changes the default background in a TableView to a custom picture, but when the user does a search in the UISearchBar, the Search Results TableView is a plain white background. Where/how do I change it to be the same…

OscarTheGrouch
- 2,374
- 4
- 28
- 39
0
votes
0 answers
Adding scope buttons to search bar doesn't work
I used the TableSearch sample from Apple to implement my own search in the app I'm working on.
It seems that the sample is bugged. The scope buttons will display the result controller only if something is entered in the search field. But, looking at…

Nemesys Software
- 25
- 2