I have a tableview with some of the same words under different sectionheaders and a searchfield.
When you are searching you will get duplicate results, I would like to filter these duplicate words from my search results.
Any ideas how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a snippet of code I use to do the exact thing. You need to compare a unique string from each object to identify the duplicate. I do it with “myObject.uniqueID” in this example. Create an array with no duplicates, then
[tableView reloadData];