How can i use two table view in one UIViewController.
A:
Have variable for each UITableView, say table1 and table2. Then, assuming that your view controller is delegate and data source for both of them in all methods you can distinguish between them the following way:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
if (tableView == table1){// Code for 1st tableview
}
if (tableView == table2){// Code for 2nd tableview
}
}
Vladimir
2009-10-28 11:21:39