3 ms·
The app looks great. I was wondering how to create the facebook style side bar, as I hadn't seen any API's for it yet. I stumbled upon this: https://github.com
by xelfer 15y ago
The app looks great. I was wondering how to create the facebook style side bar, as I hadn't seen any API's for it yet.
I stumbled upon this: https://github.com/BenHall/ios_facebook_style_navigation https://github.com/BenHall/ios_facebook_style_navigation - anyone know any others?
- nomadromrom 15y agoThe sidebar isn't a stock Apple API. Before implementing it, I've been benchmarking a few frameworks on github, none of them being appropriate for the app needs. I wanted the facebook sidebar-like menu but being able to use a standard UINavigationController for the rest of the navigation in the app. In the Facebook app, they've implemented their own view navigation system. So in the sharypic app, it's a custom implementation where the sidebar view is added directly to the main UIWindow, but below the rootViewController. Tapping the menu button triggers an animation to move the whole rootViewController's view left/right. It's not ideal because the sidebar view controller doesn't get the orientation change info anymore and making all the views stay in place requires an important amount of hacks (for instance presenting a modal view controller while the rootViewController is shifted on the right causes the rootViewController to be placed back to its original position). The code actually can't be exposed as a reusable framework because of all the hacks implemented here and there. Since then, I stumbled upon https://github.com/edgecase/ECSlidingViewController https://github.com/edgecase/ECSlidingViewController, which can be a good candidate for a sidebar implementation, and I might switch to it for the future of the sharypic app. Romain, developer of the sharypic app
- xelfer 15y agoThanks for the information!
- revorad 15y agoI haven't used any of these but there are a bunch of them mentioned here - http://stackoverflow.com/a/7777624/220891 http://stackoverflow.com/a/7777624/220891