Due to designer for an app I'm working on, I have to cram a lot of things into one view controller. I figured I would lessen some CPU strain and save some time by skipping on calling
[super layoutSubviews];
on hidden views (and be views I mean a subclass of UIView that holds all other stuff) and only refresh it before view is going to appear. If it matters to some of you, I do this by setting BOOL flag. This works fine on iOS8 but crashes app on iOS7 with:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. XXX's implementation of -layoutSubviews needs to call super.'
So how can I skip calling layoutSubviews on iOS7?
Of course, there is this possibility that I completely don't understand how iOS works and skipping this call doesn't save any time because it calculates constraints anyway. In that case, the question would be 'how can I skip calculating constraints for hidden views?'.