swift - 我想回到 TabBarController 中的上一个 viewController
swift - I want to go back to previous viewController which in TabBarController
我想在注册后返回到 TabBarController 中的用户 viewController,但是当我返回到 tabBarController 中的控制器时,底部没有 tabBar。
这是我的代码
let MyPage = self.storyboard?.instantiateViewControllerWithIdentifier("MyViewController")
presentViewController(MyPage!, animated: true, completion: nil)
MyViewController 是 TabBarController 中的第五个视图控制器
请告诉我如何转到tabBarController中的视图控制器,非常感谢!
不使用 presentViewController 函数,而是使用 dismissViewControllerAnimated 函数。
替换
self.presentViewController(MyPage, animated: true, completion: nil)
至
self.dismissViewControllerAnimated(true, completion: nil)
我想在注册后返回到 TabBarController 中的用户 viewController,但是当我返回到 tabBarController 中的控制器时,底部没有 tabBar。
这是我的代码
let MyPage = self.storyboard?.instantiateViewControllerWithIdentifier("MyViewController")
presentViewController(MyPage!, animated: true, completion: nil)
MyViewController 是 TabBarController 中的第五个视图控制器
请告诉我如何转到tabBarController中的视图控制器,非常感谢!
不使用 presentViewController 函数,而是使用 dismissViewControllerAnimated 函数。
替换
self.presentViewController(MyPage, animated: true, completion: nil)
至
self.dismissViewControllerAnimated(true, completion: nil)