Giter Site home page Giter Site logo

twitterpaggingviewer's Introduction

image

TwitterPaggingViewer

A twitter like navigation bar, page viewer.

组件要求 Requirements

  • iOS 6.0+
  • ARC

Podfile

CocosPods is the recommended method to install TwitterPaggingViewer, just add the following line to Podfile

pod 'XHTwitterPaggingViewer'

and run pod install, then you're all done!

How to use

Easy to drop into your project. 类似UITabBarController的用法,非常方便。

XHTwitterPaggingViewer *twitterPaggingViewer = [[XHTwitterPaggingViewer alloc] init];
    
    
NSMutableArray *viewControllers = [[NSMutableArray alloc] initWithCapacity:7];
    
NSArray *titles = @[@"Home", @"Friend", @"曾宪华", @"News", @"Viewer", @"Framework", @"Pagging"];

[titles enumerateObjectsUsingBlock:^(NSString *title, NSUInteger idx, BOOL *stop) {
    XHTableViewController *tableViewController = [[XHTableViewController alloc] init];
    tableViewController.title = title;
    [viewControllers addObject:tableViewController];
}];
    
    
twitterPaggingViewer.viewControllers = viewControllers;

twitterPaggingViewer.didChangedPageCompleted = ^(NSInteger cuurentPage, NSString *title) {
    NSLog(@"cuurentPage : %ld on title : %@", (long)cuurentPage, title);
};
    
self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:twitterPaggingViewer];

License

中文: TwitterPaggingViewer 是在MIT协议下使用的,可以在LICENSE文件里面找到相关的使用协议信息。

English: TwitterPaggingViewer is available under the MIT license, see the LICENSE file for more information.

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.