예제 #1
0
        public override void WillRemoveSubview(UIView uiview)
        {
            base.WillRemoveSubview(uiview);

            var position = _shadowChildren.IndexOf(uiview, ReferenceEqualityComparer <UIView> .Default);

            if (position != -1)
            {
                _shadowChildren.RemoveAt(position);
            }
        }
예제 #2
0
        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);
        }