File tree Expand file tree Collapse file tree
TLIndexPathTools/View Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
213213 UIViewController *controller = [self tableView: tableView viewControllerForCell: cell];
214214 if (controller) {
215215 [self addChildViewController: controller];
216+ [controller didMoveToParentViewController: self ];
216217 }
217218 [self tableView: tableView configureCell: cell atIndexPath: indexPath];
218219 self.currentCellForRowAtIndexPath = nil ;
@@ -286,6 +287,7 @@ - (void)tableView:(UITableView *)tableView didEndDisplayingCell:(UITableViewCell
286287{
287288 UIViewController *controller = [self tableView: tableView viewControllerForCell: cell];
288289 [controller.view removeFromSuperview ];
290+ [controller willMoveToParentViewController: nil ];
289291 [controller removeFromParentViewController ];
290292}
291293
You can’t perform that action at this time.
0 commit comments