Closed Sinisimbu closed 5 years ago
What is the error you are getting?
try
self.navigationController?.pushViewController(secondViewController, animated: true)
This should work given that:
self
is the controller embedded in the tab bar.UINavigationController | | --- Primary View Controller | | --- Tab Bar Controller | | Custom View Controller (tab 0)
I want to push view controller from tab 0. I am using this code "self.currentTabBar?.pushViewController(secondViewController, animated: true)". But i cant do this because this error happened