Seen on simulator for iOS 12.4 and device iPhone 6s Plus: traitCollectionDidChange:() is invoked on ButtonBoxController during interface rotation (from Portrait to Landscape), causing it to reload data and access its data source. This happens after the data source is already deallocated, resulting in a crash.
On later iOS versions (e.g. 15.2) the behaviour cannot be observed, i.e. traitCollectionDidChange:() is not invoked.
Seen on simulator for iOS 12.4 and device iPhone 6s Plus:
traitCollectionDidChange:()
is invoked onButtonBoxController
during interface rotation (from Portrait to Landscape), causing it to reload data and access its data source. This happens after the data source is already deallocated, resulting in a crash.On later iOS versions (e.g. 15.2) the behaviour cannot be observed, i.e.
traitCollectionDidChange:()
is not invoked.