[Solved] what is the BEST way to populate several tables with different data on one view? [closed]


An easier way than BalaChandra’s answer(that it´s correct):

I suppose your UITableViews are instance variables (or even properties). So if you have instantiated your table views like:

UITableView *tableViewA = [[UITableView alloc] init...];
UITableView *tableViewB = [[UITableView alloc] init...];

for example, you don’t need setting the tag to the tableviews.
In the UITableViewDelegate/UITableViewDataSource methods you can check which tableView is with something like:

if (tableView == tableViewA) {
    // Do something with tableA... 
}
else if (tableView == tableViewB) {
    // Do something with tableB...
}
...

solved what is the BEST way to populate several tables with different data on one view? [closed]