viewDidAppear not getting called

后端 未结 8 1039
醉酒成梦
醉酒成梦 2021-01-12 00:17

In my main UIViewController I am adding a homescreen view controller as subviews:

   UINavigationController *controller = [[UINavigationController alloc] ini         


        
8条回答
  •  爱一瞬间的悲伤
    2021-01-12 00:26

    When updating my code to 13.0, I lost my viewDidAppear calls.

    In Objective-c, my solution was to add the following override all to the parent master view controller.

    This allowed the ViewDidAppear call to get called once again...as it did in previous IOS (12 and earlier) version.

    @implementation MasterViewController

    //....some methods

    • (BOOL) shouldAutomaticallyForwardAppearanceMethods { return YES; }

    // ...some methods

    @end

提交回复
热议问题