120

I want to create an iPhone app that uses a navigation scene similar to the one pictured in the link

screenshot

Please note I do not want this to only work for iPad, I want it to work for iPhone exactly as pictured, when you click on a tableview item it hides the tableview and makes that view full screen. I want ideas on how to do this because I cannot figure it out myself.

Thanks

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Matt
  • 2,920
  • 6
  • 23
  • 33

10 Answers10

213

Facebook guys have done brilliant job in the new version of the app. The similar open source code can be found from here - JTRevealSidebarDemo. Please note that as of June 2014, this project has been discontinued, so you'll probably have better luck with a project from the list below.

It reveals technique behind doing split view for iPhone.

Some other open source code:

  1. JWSlideMenu
  2. DDMenuController
  3. PKRevealController
  4. ViewDeck
  5. ECSlidingViewController
  6. MWFSlideNavigationViewController
  7. MFSideMenu
  8. SASlideMenu
  9. HHTabListController
  10. MTSlideViewController
  11. MTStackViewController
  12. MMDrawerController
  13. DMSideMenuController
  14. JVFloatingDrawer
starball
  • 20,030
  • 7
  • 43
  • 238
Sagar
  • 3,159
  • 3
  • 29
  • 28
  • 2
    That is exactly what I wanted, thanks, I haven't had a chance to try it out yet but it doesn't contain anything that Apple wouldn't approve, like unofficial API's or anything, does it? – Matt Oct 15 '11 at 18:19
  • Any idea how to do this on Android? – DanO Dec 03 '11 at 04:52
  • @Daniel: Nope. But you may create a new question on SO and I am sure you will get a solution. – Sagar Dec 05 '11 at 04:23
  • @Sagar I already did that and doesn't seem to be working. http://stackoverflow.com/questions/8365638/ios-facebook-slide-menu-for-android – DanO Dec 06 '11 at 13:53
  • https://github.com/jeremieweldin/JWSlideMenu works fine. Has anyone customized any of these solutions to display a tableview with filters instead of navigation with the FB splitview controller. – Yasodha Jul 27 '12 at 11:23
  • 2
    @Daniel have a look to https://github.com/jfeinstein10/SlidingMenu for Android implementation. It's way more efficient than all other alternative.. – ChristopheCVB Feb 20 '13 at 15:40
  • You could add to this list UISplitViewController https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISplitViewController_class/ Since iOS8 you can accomplish the split view like Facebook app in iPhone. More info at http://stackoverflow.com/questions/24123004/slide-sidebar-menu-ios-8-swift – crubio Aug 28 '15 at 12:58
15

How about projects with storyboard compatibility? I found 1 more slide menu which is compatible with storyboards: SASlideMenu

Another storyboard-compatible menu is ECSlidingViewController and ViewDeck from Sagar's answer. They both have storyboard examples (for the last one link is ViewDeckStoryboardExample)

NANNAV
  • 4,875
  • 4
  • 32
  • 50
surfrider
  • 1,376
  • 14
  • 29
5

For anyone else looking for an Android version, take a look at:

NANNAV
  • 4,875
  • 4
  • 32
  • 50
simono
  • 51
  • 1
  • 2
3

I realize you asked about facebook, but now that ios7 is out, and this is the defacto thread i thought id post here.

For an effect similar to the kindle app on ios7 you can use:

https://github.com/romaonthego/REFrostedViewController

Todd Horst
  • 853
  • 10
  • 22
2

If anyone else is looking for a way to implement this in MonoTouch now known as Xamarin.ios, take a look at this article I just found. monotouch slide out navigation

EDIT

I just found that they have a free component for this! flyoutnavigation

Deekor
  • 9,144
  • 16
  • 69
  • 121
2

I noticed no one listed this wonderful class... SWRevealController.

I use it with my project apps all the time. It's Easy to use and heavily documented... There are also a few examples John gives to the user to understand how it works or if you'd like to derive your project from... Hope this helps

jsetting32
  • 1,632
  • 2
  • 20
  • 45
0

SHSidebarControllerwith filder effect. This might be helpful to you.. try this :)

NANNAV
  • 4,875
  • 4
  • 32
  • 50
SachinVsSachin
  • 6,401
  • 3
  • 33
  • 39
0

This looks to be the best match for me.

PKRevealController

It has nice scroll effect with finger and moves back on partial drag.

https://github.com/pkluz/PKRevealController

Tharindu Madushanka
  • 3,241
  • 7
  • 31
  • 33
0

MMDrawerController is very good option. You can configure many things. try it once https://github.com/mutualmobile/MMDrawerController

Tarun Seera
  • 4,212
  • 4
  • 27
  • 41
0

I've been working on a floating-style navigation drawer that I hope people will like. It's on GitHub, take a look.

enter image description here

JVillella
  • 1,029
  • 1
  • 11
  • 21