protected override void Dispose(bool disposing) { ClearScrollViewSubLayers(); SelectionIndicatorBoxLayer.Dispose(); SelectionIndicatorStripLayer.Dispose(); SelectionIndicatorArrowLayer.Dispose(); base.Dispose(disposing); }
protected override void Dispose(bool disposing) { ClearScrollViewSubLayers(); SelectionIndicatorBoxLayer.Dispose(); SelectionIndicatorStripLayer.Dispose(); SelectionIndicatorArrowLayer.Dispose(); foreach (var view in Subviews) { view.RemoveFromSuperview(); view.Dispose(); } base.Dispose(disposing); }