Coder Social home page Coder Social logo

williamren / shstripemenu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simhanature/shstripemenu

0.0 1.0 0.0 60 KB

A leftside menu that shows up either by tapping the stripes or swiping stripes to right. It can be used as an alternative to bottom tabs in the iOS application to gain maximum space.

License: MIT License

shstripemenu's Introduction

SHStripeMenu

It is a leftside menu which will appear either by tapping the stripes or swiping stripes to right. It can be used as an alternative to bottom tabs in the application and gain maximum space to display the content.

It will work on both landscape and portrait mode.

Screenshots

Stripe menu Stripe menu

How To Use:

In your RootViewController.h file, add the following code

#import "SHStripeMenuExecuter.h"
#import "SHStripeMenuActionDelegate.h"

RootViewController should implement SHStripeMenuActionDelegate, it contains a method to makes sure that menu selection has been handled in the root controller class

@interface YourRootViewController : UIViewController<SHStripeMenuActionDelegate>

Add the property executer to your RootViewController

@property (nonatomic, strong) SHStripeMenuExecuter	*executer; 

Initialize 'executer' in your viewDidLoad function

if (_executer == nil)
		_executer = [[SHStripeMenuExecuter alloc] init];
	[_executer setupToParentView:self];

Add method that is declared in protocol SHStripeMenuActionDelegate, it is where you will receive the menu action

- (void)stripeMenuItemSelected:(NSString *)menuName
{
	if ([menuName isEqualToString:@"home"])
	{
		// 
	}
	else if ([menuName isEqualToString:@"graph"])
	{
		// 
	}
	else if ([menuName isEqualToString:@"chat"])
	{
		// 
	}
}

Add the library folder SHStripeMenu to your project

You can add/remove/update your menu items in the file 'menu_info.plist' Add icons for your menu as mentioned in menu_info.plist

Don't forget to add "QuartzCore.framework" to your project.

Requirements SHStripeMenu requires iOS 5.0+and it uses ARC. It is built using Xcode 4.5+. It is tested on iPhone 3GS(iOS 6.1). It is tested on iPhone simulators for iOS5.0+

Feel free to fork and update the library

License The MIT License

shstripemenu's People

Contributors

simhanature avatar

Watchers

william avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.