Fix - tableView cellForRowAtIndexPath:

return a fake cell to prevent app from crashing.
This commit is contained in:
Giom Foret 2017-10-23 15:48:13 +02:00
parent 7e1214b07f
commit 1bf5b1292a
5 changed files with 17 additions and 3 deletions

View file

@ -640,8 +640,6 @@
}
return tableViewCell;
}
return nil;
}
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath

View file

@ -223,7 +223,8 @@
}
}
return nil;
// Return a fake cell to prevent app from crashing.
return [[UITableViewCell alloc] init];
}
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath

View file

@ -1123,6 +1123,11 @@
cell = participantCell;
}
else
{
// Return a fake cell to prevent app from crashing.
cell = [[UITableViewCell alloc] init];
}
return cell;
}

View file

@ -353,6 +353,11 @@
cell = participantCell;
}
else
{
// Return a fake cell to prevent app from crashing.
cell = [[UITableViewCell alloc] init];
}
return cell;
}

View file

@ -169,6 +169,11 @@
cell = deviceCell;
}
else
{
// Return a fake cell to prevent app from crashing.
cell = [[UITableViewCell alloc] init];
}
return cell;
}