Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daltoniam/dcslideoutviewcontroller
Does the slide view thing as seen in Path app.
https://github.com/daltoniam/dcslideoutviewcontroller
Last synced: about 2 months ago
JSON representation
Does the slide view thing as seen in Path app.
- Host: GitHub
- URL: https://github.com/daltoniam/dcslideoutviewcontroller
- Owner: daltoniam
- License: apache-2.0
- Created: 2013-04-25T20:02:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-23T21:24:36.000Z (about 11 years ago)
- Last Synced: 2024-10-12T12:05:27.134Z (3 months ago)
- Language: Objective-C
- Size: 164 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DCSlideOutViewController #
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];
[slide showLeftView];
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-(void)openRight
{
DCSlideOutViewController* slide = [DCSlideOutViewController currentSlide];
[slide showRightView];
}
# 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 ###
* https://github.com/daltoniam
* http://twitter.com/daltoniam