Skip to content

Commit 94affdd

Browse files
authored
Revert dispose changes
1 parent 7798176 commit 94affdd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Controls/src/Core/Handlers/Items2/iOS/ItemsViewController2.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ protected virtual string DetermineCellReuseId(NSIndexPath indexPath)
370370

371371
if (!_cellReuseIds.Contains(reuseId))
372372
{
373-
Console.WriteLine($"REGISTER CELL ID: {reuseId}");
374373
CollectionView.RegisterClassForCell(cellType, new NSString(reuseId));
375374
_cellReuseIds.Add(reuseId);
376375
}
@@ -407,9 +406,9 @@ internal void UpdateView(object view, DataTemplate viewTemplate, ref UIView uiVi
407406
{
408407
//Platform.GetRenderer(formsElement)?.DisposeRendererAndChildren();
409408
}
410-
409+
410+
uiView?.Dispose();
411411
uiView = null;
412-
formsElement?.Handler?.DisconnectHandler();
413412
formsElement = null;
414413
}
415414
else

0 commit comments

Comments
 (0)