PZSideMenuViewController

Showing:

Popularity

Downloads/wk

0

GitHub Stars

60

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

0

License

MIT

Categories

Readme

PZSideMenuViewController

##Description

The PZSideMenuViewController allows you to integrate a sliding panel mechanism in your projects

ScreenShot

##Screenshots ScreenShot - ScreenShot

##Installation

There are two ways to use the library in your project:

1) Manually add the library files to your project

  • PZSideMenuViewController.h
  • PZSideMenuViewController.m
  • PZSideMenuProtocol.h

2) Using CocoaPods

pod 'PZSideMenuViewController'

##Usage

Create a side menu view controller and give it at least the center view controller

// Prepare side menu view controller
_sideMenuViewController = [[PZSideMenuViewController alloc] initWithCenterViewController:[[HomeViewController alloc] init]];

You can, at any moment give the side menu view controller a left and/or a right side view controller:

_sideMenuViewController.leftViewController = [[LeftMenuViewController alloc] init];
_sideMenuViewController.rightViewController = [[RightMenuViewController alloc] init];

Left and right pan gestures are automatically added to your view controllers, but you can open / close the side menu view controller programatically with the three following methods:

// Open / Close side view controllers
- (void)openLeftSideViewControllerAnimated:(BOOL)animated completion:(void(^)(void))completionBlock;
- (void)openRightSideViewControllerAnimated:(BOOL)animated completion:(void(^)(void))completionBlock;
- (void)closeSideViewControllerAnimated:(BOOL)animated completion:(void(^)(void))completionBlock;

##Options

// Animation variables
@property (nonatomic, assign) CGFloat   zoomScale;
@property (nonatomic, assign) UIOffset  edgeOffset;
@property (nonatomic, assign) CGFloat   duration;

// Shadow variables
@property (nonatomic, strong) UIColor   *shadowColor;
@property (nonatomic, assign) CGFloat   shadowOpacity;
@property (nonatomic, assign) CGFloat   shadowRadius;

##Tests

  • Works fine with iOS7 on iPhone 3.5" and 4"
  • Not tested on iPad

##Contribute

The component has been developed for a single project, feel free to contribute to improve it.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100