Specifically, Goku, you can use multiple UITableViews in one UIViewController .
You just need to set both UITableView parameters to UITableViewDelegete .
For instance:
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath { if (tableView == yourFirstTableView) { // <do whatever on first table view>... } else if (tableView == yourSecondTableView) { // <do whatever on second table view>... } }
Just make sure you set both delegates for both tables:
yourFirstTableView.delegate = self; yourSecondTableView.delegate = self;
See this example in case of doubt.
source share