There is a delay between viewwillappear and viewdidappear when a view controller pushed to a navigation controller. Viewwillappear will be called immediatally, while viewdidappear will be called after the transation animation finished.
I want to make a custom navigation. Viewcontroller A is a container viewcontroller. It will contain viewcontroller B or viewcontroller C. At first, viewcontroller contains viewcontroller B(A is B's parent controller). Then controller B will navigate to controller C with a transation.
But viewdidappear will be called immediatally after viewwillappear, when addsubview is called. How to add delay between viewwillappear and viewdidappear? I hope viewwillappear will be called before the animation, and viewdidappear will be called after the animation. Can you help me?