Questions tagged as 'uisearchbar'

1
answer

How to collapse keyboard when cancel search button is clicked?

How to collapse the keyboard when the cancel button is clicked on a UISearchBar? I tried some methods and even delegate methods, but it did not work. I'll put an image to be more precise:     
asked by 04.12.2014 / 05:49
1
answer

How to use UISearchBar with data coming from Core Data?

I'm trying to filter the cell names of a table, loaded with data from Core Data, however I'm having a crash. I'm using the following code to filter the cell title: -(void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchTe...
asked by 06.11.2014 / 03:49
1
answer

How to control the rows between the main UITableView and the UITableView of UISearchBar?

I'm implementing a table with a search field, and I'm using UISearchBar . I have two variables in the app: a NSMutableArray for the original data, and another NSMutableArray for the filtered data. When the table is load...
asked by 06.11.2014 / 17:45
1
answer

How to use the Search Bar with the class person - swift 3

Good morning .. I have the class person class pessoa { var nome : String = “”; var idade : Int = 0; var foto : UIImage!; } extension pessoa { class func Gerar_Registros(pQtd : Int) -> Array<pessoa> { var v...
asked by 20.04.2017 / 17:19
1
answer

Swift - Problem with NavigationBar along with SearchController

I'm having a problem with NavigationBar when used together with SearchController . If NavigationBar translucent property is set to false NavigationBar exits the screen when SearchController is active....
asked by 14.04.2016 / 16:18