Latest 1.2.0
Homepage https://github.com/PlayAdz/PZSideMenuViewController
License MIT
Platforms ios 7.0, requires ARC
Authors

Description

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

ScreenShot

Screenshots

ScreenShotScreenShot

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.

Latest podspec

{
    "name": "PZSideMenuViewController",
    "version": "1.2.0",
    "platforms": {
        "ios": "7.0"
    },
    "summary": "Sliding panel with nice apparition/disapparition effects",
    "homepage": "https://github.com/PlayAdz/PZSideMenuViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "cyrilchandelier": "[email protected]"
    },
    "source": {
        "git": "https://github.com/PlayAdz/PZSideMenuViewController.git",
        "tag": "1.2.0"
    },
    "source_files": [
        "Classes",
        "Classes/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This