viewDidAppear not getting called

后端 未结 8 1046
醉酒成梦
醉酒成梦 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:42

    @Rob answer in Swift 4 (which helped me on my case which I was adding a childViewController to a UITabBarController)

    override var shouldAutomaticallyForwardAppearanceMethods: Bool {
        return true
    }
    

提交回复
热议问题