Comments (4)
@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!
from leftslideoutmenu.
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.
from leftslideoutmenu.
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:
- parent view controller (root view controller)
- container
- left menu
- container
- tab bar controller (your "Main View")
- container
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:
- parent view controller (root view controller)
- container
- left menu
- container
- tab bar controller (the "switcher", and the bottom tab bar is hidden)
- tab 0: UIViewController
- container
- tab bar controller (your "Main View")
- container
- tab 1: UIViewController (your other child view)
- tab 0: UIViewController
- tab bar controller (the "switcher", and the bottom tab bar is hidden)
- container
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.
from leftslideoutmenu.
Thank you so much.
from leftslideoutmenu.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leftslideoutmenu.