简体   繁体   中英

IOS perform segue from tab bar item

I have a Tab bar controller with 2 items. The first item is a VC which contains a table view. Clicking on a cell, performs a segue to some other view controller (not an item on the tab bar controller).

The problem is that it removes the tab bar when segue completes. How can I just replace the item 1 with other VC and still keep the tab bar in the bottom?

我的故事板

您需要将Item1VC嵌入到NavigationController以便当您从ItemVC推入ItemVC ,它不会删除MoviesViewController ;如果您没有嵌入NavigationController那么它将在您的情况下从主ViewController推入TabbarController以便您无法看到标签栏。

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