Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.9 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.9 KB

M3SideMenu

Version License Platform

Overview

a little Objective C side navigation view, that we created for a certain project. The view is separated into 3 segments:

  • top: extendable table view with add/remove cell functionalities
  • middle: navigation buttons, the view resizes itself depending on the button count)
  • bottom: custom view template (e.g. profile picture)

Each of the three segments can be disabled/hidden, which will make the others adjust their sizes accordingly

Demo

M3SideMenu Demo

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

  • M3SideMenu is available through CocoaPods. To install it, simply add the following line to your Podfile:

    pod "M3SideMenu"

  • in your desired ViewController import the "M3SideMenu.h" header

  • create the side menu:

M3SideMenu *menu = [[M3SideMenu alloc] initWithDelegate:self]; 
// this sets the tableView datasource delegate to your view as well,
// so the basic tableView datasource methods need to be implemented
     [self.view addSubview:self.menu]; 
// optional
     self.menu.isTableViewExtandingEnabled = YES; // makes the tableView extendable 
     [self.menu configureBottom:view]; // add the desired bottom view 
  • in "M3SideMenu.h" set the cell/header heights and the desired padding
  • build & run!

Author

rok črešnik, rok@mice3.it

License

M3SideMenu is available under the MIT license. See the LICENSE file for more info.