title: Getting Dictionary Keys for the Filtered Values
body: <p>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.</p>
  
  <pre><code>NSArray *allvalues = [subjectValue allValues];
  NSArray *filteredValues = [allvalues filteredArrayUsingPredicate:predicate];
  </code></pre>
  
  <p>Now, filteredValues will have the values that are based on the search word.</p>
  
  <p>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.</p>
  
  <p>Please advise how can i get that?</p>
  
  <p>THIS IS NOT DUPLICATE OF THIS QUESTION. 
  <a href="https://stackoverflow.com/questions/16556905/filtering-nsdictionary-with-predicate">Existing Query Link</a></p>
  
  <p>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.</p>