Giter VIP home page Giter VIP logo

irslidingsplitviewcontroller's Introduction

IRSlidingSplitViewController

Two sliding panes backed by Master and Detail view controllers.

Sample

Look at the Sample App. You’ll notice that it slides vertically — which is expected: the sample app contains a tiny subclass of the Sliding Split View Controller that allows you to override the sliding direction pretty easily.

What’s Inside

You can find an IRSlidingSplitViewController, and on its interface:

@property (nonatomic, readwrite, assign) BOOL showingMasterViewController;
@property (nonatomic, readwrite, strong) IBOutlet UIViewController *masterViewController;
@property (nonatomic, readwrite, strong) IBOutlet UIViewController *detailViewController;

That pretty much sums up what it does. You can set it up with Interface Builder, or with code.

Also, it exposes these methods for toggling things on and off:

- (void) setShowingMasterViewController:(BOOL)showingMasterViewController animated:(BOOL)animate completion:(void(^)(BOOL didFinish))callback;

- (void) setMasterViewController:(UIViewController *)toMasterVC animated:(BOOL)animate completion:(void(^)(BOOL didFinish))callback;
- (void) setDetailViewController:(UIViewController *)toDetailVC animated:(BOOL)animate completion:(void(^)(BOOL didFinish))callback;

So, you can actually do things like this in a sliding table-detail navigation app:

[wSlidingSplitVC setDetailViewController:toDetailVC animated:YES completion:^(BOOL didFinish) {
	
	[wSlidingSplitVC setShowingMasterViewController:NO animated:YES completion:nil];
		
}];

Licensing

This project is in the public domain. You can use it and embed it in whatever application you sell, and you can use it for evil. However, it is appreciated if you provide attribution, by linking to the project page (https://github.com/iridia/IRSlidingSplitViewController) from your application.

Credits

irslidingsplitviewcontroller's People

Contributors

scelis avatar

Watchers

 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.