Open ngocphu2810 opened 9 years ago
@ngocphu2810 I'm not quite sure if I understand. Are you trying to open a modal when selecting something from the menu? Can you provide a screenshot another app that does what you have in mind? Thanks!
I'm really sorry for my English too bad. I want to add more item in left menu and when I click to it, the right container view will change that child view. It remove tabbar and replaced by another view controller. I also add "Main View" in left menu when I clicked , It will open tabbar again. I really apologize to make much your time.
It doesn't look like this UI design will play work well with apple's APIs. The slideout menu is already discouraged by apple, and replacing the main view makes things harder. Personally, I would try to come up with a simpler UI design.
But if you absolutely had to use this approach, this is how I would go about it. Currently, you have a main view controller that holds containers for the left menu and tab bar controller:
You can actually use a tab bar controller (and hide the bottom tab bar) to switch between different flows. So you could try something like this:
When you click on the left menu items, you can tell the switcher to select tab at index 0 or 1.
This approach is pretty complicated, and a lot of time will be spent debugging user navigation. It would probably be easier to find a UI design that works better with apple's APIs.
Thank you so much.
Hello , Firstly, This tutorial is really helpful for me and I want to say thank you so much. Secondly, I want to add a another main view controller to replace tabbar view controller when I click into left menu. And switch between them. Please add more functions like that. Sorry I'm Swift beginner.