Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
SidebarController is a similar menu controller to the one found in Facebook and Path 2.0 on iOS.
Objective-C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Example app
SidebarController
.gitignore
README.md

README.md

SidebarController, created by Nacho Soto

SidebarController is a similar menu controller to the one found in Facebook and Path 2.0 on iOS.

License

Copyright 2012 by Nacho Soto SidebarController is released under the Apache License v2.0

Introduction

SidebarController is designed to be used in a similar way as how you use UINavigationController.

Installation

  1. Copy everything from "SidebarController" into your project.

Usage

You can instantiate it just like a UINavigationController

  SidebarController *controller = [[SidebarController alloc] initWithMainController:mainController];

Then, you can set the left and/or right controllers

  controller.leftController = leftController;
  controller.rightController = rightController;

Whenever you want to show either menu, from your main controller you call:

  [self.sidebarController showLeftController];
  [self.sidebarController showRightController];

And from the menus you can easily replace the main controller, and this will animate nicely to show the new one:

  [self.sidebarController replaceMainController:newController];

Contact

Something went wrong with that request. Please try again.