How to detect rotation in progress in viewDidLayoutSubview

2016-11-26 Thread Andreas Falkenhahn
When the user rotates the device, I need to reposition my view. I do this in viewDidLayoutSubview(). iOS then smoothly rotates the view to the new position. However, in order to reposition my view in viewDidLayoutSubview() I need to know whether viewDidLayoutSubview() is called because the user ha

Re: How to detect rotation in progress in viewDidLayoutSubview

2016-11-26 Thread David Duncan
What are you trying to accomplish? For most developers just looking at the aspect ratio in viewDidLayoutSubviews is sufficient. If you only want to do something for rotating, doing it as an alongside animation in viewWillTransitionToSize is usually what you want. Also from your last thread, if