Is it possible to have 2 different UITableViews added on a single UIView, with data source and delegate of both the tableViews being handled inside the UIView class file itself ?
Share
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.
Yes. Notice the 1st argument of all the delegate/datasource methods. It is the reference of the tableView being handled.
It can be done, but depending on the situation, there might be more elegant ways of doing whatever you are trying to do.