In mine viewController.view, I have some work done in viewWillLayoutSubviewsthat organizes the visible visible subzones that need to be brought to the forefront to hide, etc., if the orientation changes.
But I have buttons on my view that for some reason cause viewWillLayoutSubviewsfor a call at each press. Why should it be? According to Apple docs, viewWillLayoutSubviewsonly called if changes to your view change.
As a result, my views are only rebuilt with the click of a button, but I don’t rotate the device at all, and I cannot manipulate view.bounds or view.frame in any way.
source
share