简体   繁体   中英

How to navigate from tab bar controller to other view controler and vice-versa

I have a tab bar controller with 4 tabs. I am using storyboard to make connections between them.

But the view controller in 4th tab has 3 buttons. Each button should lead to different UIViewController . Well the forward navigation is fine using segue. But facing problem in back navigation. If I am adding a back segue then I am losing the tab bar controls.

Kindly help me.

Assume that your view controller in 4th tab has 3 buttons. Each button should lead to different viewControllers, Each viewControllers(the one which you are wish to enter from the button) should be embedded in navigationController and add push segues to each button.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM