Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when is viewDidAppear called?

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.

like image 373
adit Avatar asked Jan 16 '23 02:01

adit


1 Answers

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

like image 51
mkral Avatar answered Jan 24 '23 13:01

mkral