0
QuickIos posted
How can i get navigation from the tab UIViewController to UITabBarController
class EditProfileTabController: UITabBarController, UITabBarControllerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
self.delegate = self
}
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
let prefiledetail = ProfileViewController()
let tabOneBarItem = UITabBarItem(title: "Profile", image: UIImage() , selectedImage: UIImage() )
// Create Tab Review
let tabTwo = ReViewController( )
let tabTwoBarItem2 = UITabBarItem(title: "Reviews", image: UIImage() , selectedImage: UIImage())
self.viewControllers = [tabOne, tabTwo]
}
}
i am loosing navigation item for both of UIViewController at tabBar