@interface MyClass
{
UITableView *tableView1;
UITableView *tableView2;
}
@end
@implementation MyClass
// Assume that tableView1 and tableView2 are either programatically setup or are IBOutlets and linked in interface builder
- (UITableViewCell *)tableViewUITableView *)tv cellForRowAtIndexPathNSIndexPath *)indexPath {
if (tv==tableView1)
{
// Do table view 1 here
}
}
@end