Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simhanature/SHStripeMenu
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.
https://github.com/simhanature/SHStripeMenu
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/simhanature/SHStripeMenu
- Owner: simhanature
- License: mit
- Created: 2013-05-15T16:58:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-20T14:53:35.000Z (about 11 years ago)
- Last Synced: 2024-07-20T11:06:25.022Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 340 KB
- Stars: 61
- Watchers: 13
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## 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](https://raw.github.com/simhanature/SHStripeMenu/master/screenshots/StripeMenu.png "Stripe Menu")
![Stripe menu](https://raw.github.com/simhanature/SHStripeMenu/master/screenshots/StripesOverContent.png "Stripe Menu Over Content")**How To Use:**
In your RootViewController.h file, add the following code
``` objc
#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
``` objc
@interface YourRootViewController : UIViewController
```Add the property executer to your RootViewController
``` objc
@property (nonatomic, strong) SHStripeMenuExecuter *executer;
```Initialize 'executer' in your viewDidLoad function
``` objc
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
``` objc
- (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.plistDon'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