简体   繁体   中英

Open view controller with same tab from tabbed app

I have a tabbed app , In storyboard I have 4 screens Changing from one tab to another it works . I have for example on tab 2 a collection view . I want on item click to open a View controller for witch I ve made separate file (there are many screens and i chose for detail views to do separate xibs ) I ve tried with self.navigationcontroller pushvc but it does not open a new page , the view does not change.

Is the viewController in tab 2 (the viewController that holds the collectionView) embedded in a UINavigationController ?

If not, self.navigationController will return nil.

To embed a viewController in a navigation context, choose Editor > Embed in > NavigationController when the viewController is selected in IB

您需要嵌入UINavigationCtrl或添加带有过渡的子视图才能实现此功能。

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