我有一个 tabBar 控制器作为父级,我正在推送一个带有 navigationController 的视图控制器。然后向它展示上面的 2 个其他视图控制器。它就像 Tabbar(homeController) -> Child1(push) -> Child 2(presenting) -> child3(presenting)。我使用计时器解雇了我的最后一个 childViewController。当它被解雇时,我想回到 tabBarController(home)。
let parent = self.presentingViewController
self.dismiss(animated: false, completion: {
parent?.present(vc, animated: true, completion: nil)
})
我把上面的代码放在我的第二个子视图控制器中。但它又回到了 child1 viewContoller。在这里需要一些帮助。