• Stars
    star
    356
  • Rank 119,446 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 10 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A twitter like navigation bar, page viewer.

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.

More Repositories

1

SVG-Skeleton

Create the skeleton screen through SVG element
JavaScript
167
star
2

XCode-Color-Fixer

StoryBoard / XIB 颜色偏差很严重,怎么破?XCode-Color-Fixer帮你忙!
Objective-C
125
star
3

flowhub

Through a simple way to deal with the event flow.
JavaScript
110
star
4

fe-guide

Joyy UED 前端规范指南
92
star
5

MagicDrag

MagicDrag is an application introducing page components build for Interactive Animations.
Swift
45
star
6

CRChecker

CRChecker is a debug tool, helps you find out circular reference problem.
Objective-C
39
star
7

cherry

一款高效、好用的图片处理工具(https://yyued.github.io/cherry/)
HTML
34
star
8

generator-lego

F2E workflow, base on yeoman & gulp
CSS
22
star
9

legolib

面向移动端的轻量级前端 Components,提供易用、可靠的解决方案
CSS
20
star
10

LEGO-Mobile

LEGO移动前端开发框架,提供简单、快速的 Web 开发体验
JavaScript
18
star
11

H5Live

JavaScript
15
star
12

grunt-workflow

这是一个帮助前端开发工程师简化工作的工具
CSS
13
star
13

lottery

一个浏览器端抽奖动画js组件
JavaScript
12
star
14

ENMetadataCleaner

Decrease PSD file size.
JavaScript
11
star
15

LegoUI-pc

LegoUI, 一套基于BEM的轻量级前端UI库
CSS
8
star
16

LegoUI-mobi

CSS
6
star
17

ENAutoBackUpTool

JavaScript
6
star
18

UIKit-Android

Kotlin
6
star
19

nice-commit

规范 Git Commit
JavaScript
6
star
20

share-sheet

share sheet
Vue
5
star
21

fekit.crx

f2e toolkit chrome-extension dev env
JavaScript
4
star
22

YFT

create Image and Label from Character-Bitmap.
Objective-C
3
star
23

value-animator

TypeScript
3
star
24

Lego-Snippets

LegoUI Snippets for Sublime Text 2/3
2
star
25

fe-solution

前端解决方案
JavaScript
2
star
26

PSD-Etiquette

PSD图层管理指南
2
star
27

fekit

f2e dev toolkit
JavaScript
1
star
28

document-template

The project document template
1
star
29

LEGO-Pack

Just pack a folder and generate md5 hash.
JavaScript
1
star
30

CodeX

CodeX helps you build User Interface from PRD to design, and generate code via Sketch.
JavaScript
1
star