Hey all,
I have a uiview controller, with 4 uiviews and 3 of the 4 uiviews have table views. They are all connected to remoteTableViews:
So all of the table views properly display for their respective uiviews. The problem is some of the table views cells are not populated with data. I believe it has to do with the fact that when the tableView callback is invoked on my uiviewcontroller, it seems to pass only 1 of the 3 table views:
Is there a way to pass all 3 table views to a callback so that all 3 table views get populated with the same data?
I have a uiview controller, with 4 uiviews and 3 of the 4 uiviews have table views. They are all connected to remoteTableViews:
Code:
@property (strong, nonatomic) IBOutletCollection(UITableView) NSArray *remoteTableViews;
So all of the table views properly display for their respective uiviews. The problem is some of the table views cells are not populated with data. I believe it has to do with the fact that when the tableView callback is invoked on my uiviewcontroller, it seems to pass only 1 of the 3 table views:
Code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"CellIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
if (self.fenceIsActive)
{
cell.imageView.image = [UIImage imageNamed:@"checked.gif"];
}
else {
cell.imageView.image = [UIImage imageNamed:@"unchecked.jpg"];
}
UILabel *cellLabel = (UILabel *)[cell viewWithTag:1];
[cellLabel setText:[self displayLabelFor:indexPath.row]];
return cell;
}
Is there a way to pass all 3 table views to a callback so that all 3 table views get populated with the same data?
Last edited by a moderator: