viewDidAppear nie jest wywoływany

W moim głównym sterowniku UIViewController dodałem kontroler widoku ekranu głównego jako podpowiedzi:

   UINavigationController *controller = [[UINavigationController alloc] initWithRootViewController:vc];
        controller.navigationBarHidden = YES;
        controller.view.frame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height);
        [self addChildViewController:controller];
        [self.view insertSubview:controller.view atIndex:0];
        [controller didMoveToParentViewController:self];    

Problem polega na tym, że viewDidAppear i viewWillAppear są wywoływane tylko raz, podobnie jak viewDidLoad. Dlaczego to? Jak to zrobić?

Zasadniczo wewnątrz vc nie otrzymuję viewDidAppear ani viewWillAppear.

Właśnie próbowałem też dodać kontroler UIViewController bez kontrolera nawigacji i nadal nie działa:

vc.view.frame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height);
        [self addChildViewController:vc];
        [self.view insertSubview:vc.view atIndex:0];
        [vc didMoveToParentViewController:self];    

questionAnswers(6)

yourAnswerToTheQuestion