Hi,
I've a simple UINavigationController with a root view controller having a prompt set in it's navigation item. When a second view controller is pushed without a prompt, the animation runs in two steps.
- The second view controller is moved in from the right, while the navigation bar height stays the same.
- The navigation bar height is animated to the smaller height because the space for the prompt is no longer needed.
So far so good.
What I want to achieve is having a UIView placed right below the navigation bar. So it first have to be at Y=74, which is the height of the navigation bar with prompt. And while the navigation bar shrinks I would like to animate Y position of the view to 44, which is the height of the bar without prompt.
I don't use autolayout, so if there's a solution using constraints, it doesn't work for me.
For some reason viewDidLayoutSubviews is not called at all. Well, only the first time the view controller is pushed.
Is there any way to achieve what I've described?
Dirk