I have three tab bar items in the tab bar now, and I want to let the second one push a navigation controller instead of the default effect. I've tried put self.navigationController?.tabBarController?.tabBar.isHidden = true
in viewWillAppear
and it didn't work very well.
Any help is appreciated!
From the image it's clear you are using storyboards. Select the second view controller, the one that you want to navigate to. Then from the file menu select Editor-> Embed in -> Navigation controller. Select the segue and then select the segue type as push. That should do it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.