Questions tagged [uisearchbardelegate]

The UISearchBarDelegate protocol defines the optional methods you implement to make a UISearchBar control functional.

The UISearchBarDelegate protocol defines the optional methods you implement to make a UISearchBar control functional. On UISearchBarDelegate, you can find the following methods:

Editing Text

– searchBar:textDidChange:

– searchBar:shouldChangeTextInRange:replacementText:

– searchBarShouldBeginEditing:

– searchBarTextDidBeginEditing:

– searchBarShouldEndEditing:

– searchBarTextDidEndEditing:

Clicking Buttons

– searchBarBookmarkButtonClicked:

– searchBarCancelButtonClicked:

– searchBarSearchButtonClicked:

– searchBarResultsListButtonClicked:

Scope Button

– searchBar:selectedScopeButtonIndexDidChange:

150 questions
0
votes
0 answers

Predictive Search In Array to filter Search Results

I have an array with structure like this : ( { displayFlag = ""; displaySize = 0; name = "Faith Stretch Bracelets-Display Unit"; price = "19.99"; sku = "KARG-ACJE-100001-9999"; status = received; upc =…
Shivam Tripathi
  • 1,405
  • 3
  • 19
  • 37
0
votes
1 answer

Strange UISearchBar cancel button behaviour in iphone (Working fine in Simulator)

I am showing some Lists in UITableView. For sorting purpose i have used UISearchBar. I am getting some strange behaviors of Cancel button Steps to reproduce Search for something Notice that while you are searching, there is a 'Cancel' button that…
Tariq
  • 9,861
  • 12
  • 62
  • 103
0
votes
1 answer

UISearchResultsUpdating not filtering collectionView based on searchBar text

I am trying to filter a collectionView based on searchBar text inputs. I am able to load and populate the UISearchResultsUpdating class's collectionView with all the users in the DB on textDidChange and updateSearchResults function call, but the…
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
2 answers

image is not displayed correctly while loading cell with entries in searchbar iOS swift3

Here I am trying to display the filtered data results when the searching starts.The searching of the name works but I don't understand how to take the image with the search to display.I think the error is in filter content for search I'm new to iOS…
0
votes
2 answers

how to load data in table view result of search bar swift

I want to display the search result of a SearchBar in a tableView and I do not know how. when i type a Destination in the TextField, everything is works just fine, but when i type in the SearchBar is not working: Here is how to call a func to…
xhinoda
  • 1,032
  • 1
  • 19
  • 26
0
votes
1 answer

How to add a searchBar with scopebar inside of a NavigationBar where the navBar automatically increase its height and shows the scopeBar

I read all questions on stackoverflow but none of them could solve my problem. I created a UICollectionView and and anchored a searchBar inside of the navigationBar without using Storyboards! class UserSearchController:…
0
votes
1 answer

UISearchcontroller Cancel button not working

class PlaceSelectorViewController: UIViewController, GMSAutocompleteResultsViewControllerDelegate, UISearchBarDelegate, UISearchControllerDelegate { I have UISearchBarDelegate in my class searchController?.searchBar.delegate = self and I had set…
Junwoo Lee
  • 489
  • 1
  • 5
  • 15
0
votes
3 answers

Searchbar/filtering process using serachbar in IOS objective c

Can anyone please help me find out why am i not able to fetch filtered array when searchbar delegate method is called while entering text in searchbar My textDidChange method for toolbar -(void)searchBar:(UISearchBar *)searchBar…
Shelby
  • 81
  • 1
  • 11
0
votes
1 answer

Cannot not assign Value Type

I am making a swift app that involves a tableView that goes to a url when you click the cell. I implemented search inside of the tableview but I am getting two errors inside of the SearchBar code. Here is my code. import Foundation import…
Luc
  • 53
  • 6
0
votes
2 answers

Working with big base in Core Data via fetchedResultsController

Maybe someone has experience of work with big Core Data bases (i have 32k of rows in my base, and i need to show all this base to the user and make some search in it) and when i'll try to read the base in to my fetchedResultsController i have 3-5…
0
votes
1 answer

searchBarSearchButtonClicked of UISearchBar does not cancel the input mode

This code works public func searchBarSearchButtonClicked(searchBar: UISearchBar) { print("search") } But if keyboard search button is pressed the UISearchBar is still active. To deactivate I have to press 'cancel' button. What have I…
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
0
votes
1 answer

Application crashes when type a letter in search bar

enter image description hereHere i have implemented all the things require for using search bar but don't know whats going wrong with the app. it crashes when i start entering anything in search bar. Any help is appreciated. Error : 'Can't use…
virat
  • 117
  • 1
  • 1
  • 7
0
votes
1 answer

Querying for specific strings in Firebase?

I have a database which looks something like this: "trucks" : { "3705ec54-8a2e-4eb1-8bb9-ab2243645ac1" : { "email" : "sandwiches@123.com", "name" : "Sandwich Truck", "phone" : "123 - 456 - 1234", "provider" :…
Joe Sloan
  • 775
  • 2
  • 9
  • 16
0
votes
0 answers

searchbar displaycontroller getting the data from server but displaying complete fake already displayed data

- (void) searchBarSearchButtonClicked:(UISearchBar *)theSearchBar { isSearching = YES; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSInteger conf=[[[NSUserDefaults standardUserDefaults]…
Deepak Yadeedya
  • 119
  • 1
  • 12