I have implemented filterContentForSearchText method in UISearchDisplayDelegate.
I can see that (NSString*)searchText is the text i write in the textfield, but the scope returns me NULL. What parameter do I give for scope?
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.
Scope is the “area” in which you are searching, if you have implemented it. E.g.
You can then pass the relevant scope to
filterContentForSearchText:scope:as follows:This was taken from Apple’s TableSearch sample code.