Latest 0.0.1
Homepage https://github.com/daltoniam/DCSlideOutViewController
License Apache License, Version 2.0
Platforms ios 5.0, requires ARC
Frameworks QuartzCore
Authors

Does the center slide view thing as seen in Path app.

Dependancies

Requires Quartz framework.

Example

UINavigationController* navBar = [[UINavigationController alloc] initWithRootViewController:[[YourCenterViewController alloc] init]];
DCSlideOutViewController* slide = [DCSlideOutViewController slideOutController:navBar
                                                                          left:[[YourLeftViewController alloc] init]
                                                                         right:[[YourRightViewController alloc] init];
slide.leftViewIsSlideLength = YES;
self.window.rootViewController = slide;

then in your main view controller I recommend you add something like this:

self.navigationItem.leftBarButtonItem = [UIBarButtonItem customButtonWithImage:[UIImage imageNamed:@"show_left"] target:self selector:@selector(openLeft)];
self.navigationItem.rightBarButtonItem = [UIBarButtonItem customButtonWithImage:[UIImage imageNamed:@"show_right"] target:self selector:@selector(openRight)];

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-(void)openLeft
{
    DCSlideOutViewController* slide = [DCSlideOutViewController currentSlide];
    
; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -(void)openRight { DCSlideOutViewController* slide = [DCSlideOutViewController currentSlide];
; }

Requirements

This framework requires at least iOS 5 above.

Install

The recommended approach for installing DCSlideOutViewController is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.

via CocoaPods

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup

Change to the directory of your Xcode project, and Create and Edit your Podfile and add RestKit:

$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile
platform :ios, '5.0' 
pod 'DCSlideOutViewController'

Install into your project:

$ pod install

Open your project in Xcode from the .xcworkspace file (not the usual project file)

License

DCSlideOutViewController is license under the Apache License.

Contact

Dalton Cherry

Latest podspec

{
    "name": "DCSlideOutViewController",
    "version": "0.0.1",
    "summary": "Does the slide view thing as seen in Path app.",
    "homepage": "https://github.com/daltoniam/DCSlideOutViewController",
    "license": "Apache License, Version 2.0",
    "authors": {
        "Dalton Cherry": "[email protected]"
    },
    "source": {
        "git": "https://github.com/daltoniam/DCSlideOutViewController.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "*.{h,m}",
    "frameworks": "QuartzCore",
    "requires_arc": true
}

Pin It on Pinterest

Share This