I am having NSMutableDictionary (subjectValue) which contains value and keys. I want to filter based on the values searched for in search bar. So, I used the code like below.
NSArray *allvalues = [subjectValue allValues];
NSArray *filteredValues = [allvalues filteredArrayUsingPredicate:predicate];
Now, filteredValues will have the values that are based on the search word.
Now, I want to get the Keys also for the filtered values got from the above result. I know how to get all values and all, but i want to get the keys for the filtered result.
Please advise how can i get that?
THIS IS NOT DUPLICATE OF THIS QUESTION. Existing Query Link
What has been asked in the above link is, how to retrieve all values based on the predicate search. What I'm asking is beyond that. I already have got all filtered values, I want to get keys for that filtered values. My question is different.