Giter VIP home page Giter VIP logo

cxlslidelist's Introduction

CXLSlideList

a light weight and easy to use tableview with slide effect.

CXLSlideList Screenshot


Requirements

  • Xcode 6 or higher

  • Apple LLVM compiler

  • iOS 7.0 or higher

  • ARC

Demo

There is an exampel in Example floder

Installation


##cocoapod

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup

Change to the directory of your Xcode project and edit PodFile:

pod 'CXLSlideList'

Install into your Xcode project:

 pod install

##Manual Install copy CXLSlideListViewController.h /.m to your project, and add #import "CXLSlideListViewController.h" to the file.

#Example Usage In your AppDelegate's - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions create the view controller and assign table view controllers.

 //create three table view controller
 
  MainTableViewController * mainTable = [[MainTableViewController alloc] init];
   
SecondTableViewController * secondTable = [[SecondTableViewController alloc] init];

ThirdTableViewController * thirdTable = [[ThirdTableViewController alloc] init];

//create CXLSlideList
CXLSlideListViewController * cxlSlideListController = [[CXLSlideListViewController alloc] initWithMainTableViewController:mainTable secondTableViewController:secondTable thirdTableViewController:thirdTable];

//assign CXLSlideList to window
self.window.rootViewController = cxlSlideListController;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];

TableView's datasource is implement by your file, delegate is implement by CXLSlideList.

you just need to implement tableview's datasource,but you should addObserver in your file, when the tableview's click and slide event notification post:

//main tableView click & slide Notification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:CXLDidClickMainTableViewCellNotification object:nil];

//second tableivew click & slide Notification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:CXLDidClickMainTableViewCellNotification object:nil];

//Third tableview click Notification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:CXLDidClickSecondTableViewCellNotification object:nil];

Here is some useful Class method provide by CXLSlideList:

//Get Index
+(NSIndexPath *)getMainTableViewIndexPath;
+(NSIndexPath *)getSecondTableViewIndexPath;
+(NSIndexPath *)getThirdTableViewIndexPath;

//Set Gap
+(void)setMainTableToSecondTableGap:(CGFloat)gap;
+(void)setSecondTableToThirdTableGap:(CGFloat)gap;

The detail useage can be found in Example

Ps:

if your have any advise,Pls contact with: [email protected]

cxlslidelist's People

Contributors

becomedragon avatar

Watchers

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