I am trying to write a simple filter mechanism such that when the user types in a filter string the UIPicker filters it's data. I have it working almost.
This is my filter code and it works. My question is, once I have applied a filter to a datasource, how can I remove the predicate and restore the original dataset? I am using NSMutableArray for my datasource.
NSPredicate* predicate = [NSPredicate predicateWithFormat:@"SELF beginswith[c] 'B'"];
[arrayCountryChoices filterUsingPredicate: predicate];
[pickerCountry reloadComponent:0];
Thank you in advance.