I have 2 UITableView with UISearchDisplayController on a same UIView.
How to determine which one of the two UITableView relates to the UISearchDisplay Controller?
Welcome any comment
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.
You can set tags both for the searchBars and tableViews, and check them appropriately in the callbacks of UISearchBarDisplayController and UITableView delegates.
For example:
You can always use tags on UIViews to check “who is who” in your code.
Hope this helps.