I have a UIView that will need to display two UITableViews, but they are never shown together, by using a SegementedBar you can toggle one or the o
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
...
if (tableView.tag == 1) {
...
} else { // tableView == self.secondTableView
...
}
}
tag could be assigned from the .xib. so no need to have UITableVeiw variable in .h file. Two table view in .xib needed