Reputation: 2457
My app has complex transition sequence:
The problem is how to insert D. In case of push-pop animations navigationController has viewControllers
property which I can change as I wish. But what to do in case of modal view controllers?
Upvotes: 0
Views: 404
Reputation: 2457
My solution is:
UINavigationController
with hidden navigation bar) with B as rootViewControllerIn other words I didn't find how to replace presenting/presented view controllers but I can build in them into navigation controllers. It is better than built in views and adding child view controllers because you can still use present/dismiss without of additional difficulties.
It seems UITabBarController
may work too for this purpose.
Upvotes: 0
Reputation: 246
You could put D controller's view inside a view on controller A - and you manage it like a normal view - hide / show with animation.
You could have something like this in controller A:
let dController = DController()
if let dView = dController.view {
self.view.addSubview(dView)
}
Upvotes: 0