简体   繁体   中英

How to present another view controller under tab bar on button press inside a tab bar controller view?

I have 4 tabs and in the home tab, I have a button to goto profile view controller.

When I use segue, The view changes completely and it's presented over tab bar. So it gets hidden.

I want to present it under the tab bar so that I can quickly navigate to other tabs without a back button.

I am not sure if this is the right way or not. but you can add presenting viewcontroller 's view as subview with the same animation.

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