iPhone dev: Creating sliding drawers like Path and Facebook apps

前端 未结 10 2641
情歌与酒
情歌与酒 2020-12-12 09:14

The new Facebook app seem to have done away with the grid-icon layout, with a more interesting custom navigation layout where the bottom-most view shows all the options (lik

相关标签:
10条回答
  • 2020-12-12 09:58

    I found a really nice project on github:

    https://github.com/devindoty/DDMenuController

    0 讨论(0)
  • 2020-12-12 09:58

    Here's another one: PPSlideDrawer.

    http://www.localwisdom.com/blog/2013/05/simple-sliding-drawer-implementation-for-ios/

    I checked out @Ephraim's answer (http://code.google.com/p/drawer-navigation-controller/) because it seems pretty easy to work with. The problem, it seems, with drawer-navigation-controller is that the swiping animation does not follow the user's finger--it is automated. PPSlideDrawer aims to solve that. I'm about to try it out in my project and will post some updates.

    Might be a dealbreaker for some that the following are still under "TODO:"

    1. Implement auto open functionality.
    2. Implement swipe from edge functionality(rather than just detect panning gesture).
    3. Landscape support.
    0 讨论(0)
  • 2020-12-12 10:05

    Everything I've seen on the internet and those recommended by Yosi Taguri are all way too complicated. Drawers can be achieved by a very simple category to UINavigationController with no graphics asset whatsoever and no class extension needed, and backwards compatible with iOS 3.0!

    Take a look a this:

    http://code.google.com/p/drawer-navigation-controller/

    Here is a video http://www.youtube.com/watch?v=5T-1-_pFbG0

    0 讨论(0)
  • 2020-12-12 10:07

    This project (not mentioned above) looks like the most mature and polished to me: https://github.com/gotosleep/JASidePanels

    Also, seems to still be active.

    Edit: I have since transitioned to: https://github.com/mutualmobile/MMDrawerController which IMO is an almost perfect implementation.

    0 讨论(0)
  • 2020-12-12 10:10

    if anyone's wondering which one to choose among JTReveal and DDMenu, I'd suggest DDMenucontroller over JTRevealSidebar (haven't used the other options listed by @Yosi). Its a lot simpler, lighter and works exactly the way the Path app works (and it is easier to modify to suit your requirements). Havent seen the issue of black background mentioned by @Henning

    0 讨论(0)
  • 2020-12-12 10:10

    My project FRLayeredNavigationController on GitHub goes in about the same direction.

    (The spacing between the layers is easily configurable and it supports rotation of course).

    Have a look at the demo videos/screenshots:

    • http://youtu.be/v_tXD_mL05E
    • http://youtu.be/q66HX2td_uc
    • https://github.com/weissi/FRLayeredNavigationController/raw/master/FRLayeredNavigationControllerScreenshot1.png
    • https://github.com/weissi/FRLayeredNavigationController/raw/master/FRLayeredNavigationControllerScreenshot2.png
    0 讨论(0)
提交回复
热议问题