when is viewDidAppear called?

ios, ipad, iphone, objective-c

Solution

`viewDidAppear` will not be called when you dismiss a modal view. Think of a modal view as a view on top on the view.

Problem

If I have a UIViewController called B. If I add UIViewController C as a subview/child view controller of B. Then I add in D as a child view controller of B too. I then remove D from B. In this case should C's viewDidAppear be called afterwards? The reason I ask is because I am not getting B's call to viewDidAppear. I am planning to do something when B's dismissed.

Original source