Currently I’m programming an app with a tableView, similar to that one in the iPhone Contacts app.
Everything works (the sections, the bar on the right showing the titles, the cells are configured…), beside the search bar. I’m familiar how to do this (search) if the tableView’s data is loaded from an array, but my situation is that its loaded from arrays located in a NSDictionary.
The dict looks like
Key = "A" >> Value = "array = apple, animal, alphabet, abc ..."
Key = "B" >> Value = "array = bat, ball, banana ..."
How can I remove all strings (from all of the dictionary’s arrays) matching the search term?
Thanks a lot in advance 🙂
Well you can do it like this
I don’t know if this is the best way to do it or even if it’s faster enough but let me know if this works for you.