Setup for crashing is following (minimal one I've experienced in my app):
iOS8
One stackView inside another used from inside xib.
Apparently - (instancetype)initWithCoder:(NSCoder *)decoder returns view with subviews added. Even though addSubview: was clever enough to not add subview to stackView twice (removed line), it still had consequences: observers to hidden property (OAStackView+Hiding.h) where added twice which caused crash on master view deallocation.
Setup for crashing is following (minimal one I've experienced in my app):
stackView
inside another used from inside xib.Apparently
- (instancetype)initWithCoder:(NSCoder *)decoder
returns view with subviews added. Even thoughaddSubview:
was clever enough to not add subview to stackView twice (removed line), it still had consequences: observers tohidden
property (OAStackView+Hiding.h
) where added twice which caused crash on master view deallocation.