Giter Site home page Giter Site logo

Comments (4)

chenr2 avatar chenr2 commented on August 30, 2024

@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.

ngocphu2810 avatar ngocphu2810 commented on August 30, 2024

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.

chenr2 avatar chenr2 commented on August 30, 2024

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")

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")
        • tab 1: UIViewController (your other child view)

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.

ngocphu2810 avatar ngocphu2810 commented on August 30, 2024

Thank you so much.

from leftslideoutmenu.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.