We had a crash where iOS 9/10 devices were crashing because OLEContainerScrollView was still observing KVO properties on a subview as it was being deallocated, causing an exception to be raised in NSKVODeallocate.
Calling willRemoveSubviewFromContainer: before [super willRemoveSubview:subview] gives the OLEContainerScrollView an opportunity to deregister itself before it's too late.
We had a crash where iOS 9/10 devices were crashing because
OLEContainerScrollView
was still observing KVO properties on a subview as it was being deallocated, causing an exception to be raised inNSKVODeallocate
.Calling
willRemoveSubviewFromContainer:
before[super willRemoveSubview:subview]
gives theOLEContainerScrollView
an opportunity to deregister itself before it's too late.