tags:

views:

11

answers:

1

How can be give data to a table out of three tables in same class?

+1  A: 

All the delegate calls pass you the ID of the tableView along, so you can just retain the id of your table in an instance variable and probe for it in the delegate calls:

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    if (tableView == tableOne)
        return 1;
    else if (tableView == tableTwo)
        return 10;
}
Robin
Or you can combine the information using JOIN clauses in case you are talking about DataTables?
Dick Lampard
accepted thanks
pankaj kainthla