updated
A few ideas:
- Use Auto Layout constraints and let the layout engine handle it.
- Insert
FullScreenContainerOfInstructionView
into the view hierarchy afterFullScreenView
is completed. - Make
[FullScreenContainerOfInstructionView layoutSubviews]
a no-op until you set some flag indicating thatFullScreenView
is ready. - Use
setNeedsLayout
afterFullScreenView
is ready and don't worry about the first pass being incorrect.
original
[viewThatNeedsToBeLaidOut layoutIfNeeded];