Minitour / AZTabBarController

A custom tab bar controller for iOS written in Swift 4.2
MIT License
348 stars 65 forks source link

Value of type 'AZTabBarController' has no member 'pushViewController' #52

Closed Sinisimbu closed 5 years ago

Sinisimbu commented 5 years ago

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

Minitour commented 5 years ago

What is the error you are getting?

Minitour commented 5 years ago

try

self.navigationController?.pushViewController(secondViewController, animated: true)

This should work given that:

UINavigationController | | --- Primary View Controller         |         | --- Tab Bar Controller                 |                 | Custom View Controller (tab 0)