Code Monkey home page Code Monkey logo

msslidingpanelcontroller's Introduction

MSSlidingPanelController

The MSSlidingPanelController is a library which allows to easily integrate in your iOS 7 project a sliding panel controller mechanism.

Features

MSSlidingPanelController

Either for the left and right panel, it is possible to set:

  • the width,
  • the status bar color,
  • the status bar color transition,
  • the opening gestures,
  • the closing gestures,
  • the interaction with the center view.

The status bar color transition can be:

  • abrupt,
  • smoothly.

The panels can be opened by:

  • dragging the navigation bar of the center view (if there is one),
  • dragging the content of the center view.

The panels can be closed by:

  • dragging the navigation bar of the center view (if there is one),
  • dragging the content of the center view,
  • tapping the navigation bar of the center view (if there is one),
  • tapping the content of the center view.

The interactions with the center view can be:

  • nonexistent,
  • only with the navigation bar (if there is one),
  • with the entire center view.

MSSlidingPanelControllerDelegate

The protocol MSSlidingPanelControllerDelegate allows to know when:

  • a panel begins to bring out,
  • a panel has been closed,
  • a panel has been opened.

UIViewController (MSSlidingPanel)

This extension allows view controllers to easily get a pointer on a sliding panel controller if this one is a parent.

Installation

There are two ways to use MSSlidingPanelController in your project.

The first one is to manually add these files to your project:

  • MSSlidingPanelController.h
  • MSSlidingPanelController.m
  • MSViewControllerSlidingPanel.h (optional)
  • MSViewControllerSlidingPanel.m (optional)

The second way is by using CocoaPods.

pod 'MSSlidingPanelController'

Documentation

The documentation of MSSlidingPanelController can be found on CocoaDoc.

Creating a MSSlidingPanelController

That's very easy to create a MSSlidingPanelController. Only write this few lines et voila!

UIViewController            *centerViewController;
UIViewController            *leftPanelController;
UIViewController            *rightPanelController;
MSSlidingPanelController    *slidingPanelController;

centerViewController = [[UIViewController alloc] init];
leftPanelController = [[UIViewController alloc] init];
rightPanelController = [[UIViewController alloc] init];

slidingPanelController = [[MSSlidingPanelController alloc] initWithCenterViewController:centerViewController
																	leftPanelController:leftPanelController
																andRightPanelController:rightPanelController];

You can also create it by using Storyboard. Take a look at the examples to see how it works !

Credit

The library and the examples are developed and designed by Sébastien MICHOY.

Feedback

If you find a bug, feel free to create Github issues!

License

MSSlidingPanelController is available under the BSD license. Please see the LICENSE file for more information.

msslidingpanelcontroller's People

Watchers

James Cloos avatar  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.