TabBarController viewDidAppear not called when presented view controller dismissed

101 views Asked by At

I am trying present a navigation controller with UITabBarController, I am confused why UITabBarController's viewDidAppear is not called again after the navigation controller dismissed. How can I manage to do that?

1

There are 1 answers

1
son On

Change presentation style to currentContext. For example:

let controller = ViewController()
controller.modalPresentationStyle = .currentContext //<-- Add this line
self.present(controller, animated: true, completion: nil)