public override void WillRemoveSubview(UIView uiview) { base.WillRemoveSubview(uiview); var position = _shadowChildren.IndexOf(uiview, ReferenceEqualityComparer <UIView> .Default); if (position != -1) { _shadowChildren.RemoveAt(position); } }
public override void WillRemoveSubview(UIView uiview) { // cf. AddSubview comment! var index = _shadowChildren.IndexOf(uiview, ReferenceEqualityComparer <UIView> .Default); if (index != -1) { _shadowChildren.RemoveAt(index); } base.WillRemoveSubview(uiview); }