简体   繁体   中英

Segue to Specific VC in specific Tab from TabBarController

Im quite new to swift/iOS development and i do noz know how to accomplish my current goal.

If the User presses a Button in Tab A, i want the TabBarController to switch to Tab B. But i also want to show a specific View Controller in Tab B. Tab B consists of a Navigation Controller with three Scenes and i need to show the second one, regardless of whether or not the user already visited Tab B.

I already tried to switch the Tab using selectedIndex, but i have no idea how i can then show the second VC for this Tab.

Is there any good way to accomplish this?

  • You Have to Load Navigation Controller on tab B
  • And then fire one segue for pushing second view controller

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