简体   繁体   中英

Presenting a Modal View inside a UITabBarController

So in the root of my app, I have a UITabVarController (created in the storybaord). And when the user goes to one of my tabs, I have a special class that initalizes by presenting a modal view controller. So my question is: Is there a way to present this modal view inside the UITabBarController - So I will still see the other tabs, rather than being on top of them.

I was thinking something like:

self.parentViewController.tabBarController presentViewController
self.parentViewController ...

Thanks in advance.

What you may want is a NavigationController instead of doing things modally. You can hide the navigation bar if you don't need that.

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