Skip to content

Commit 40027c7

Browse files
author
Carlos
committed
Fix remove view from a cell backed by a VC at didEndDisplayingCell
1 parent fb982e4 commit 40027c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

TLIndexPathTools/View Controllers/TLTableViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
285285
- (void)tableView:(UITableView *)tableView didEndDisplayingCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
286286
{
287287
UIViewController *controller = [self tableView:tableView viewControllerForCell:cell];
288+
[controller.view removeFromSuperview];
288289
[controller removeFromParentViewController];
289290
}
290291

0 commit comments

Comments
 (0)