GXSlideSegmentController 仿网易新闻侧滑视图

程序名称:GXSlideSegmentController

授权协议: MIT

操作系统: iOS

开发语言: Objective-C

GXSlideSegmentController 介绍

看了仿网易新闻侧滑视图的例子都不是很满足我要的效果,就自己写了个,侧滑视图容器上下联动。

使用方法:

NSMutableArray *vcs = [NSMutableArray array];
for (int i = 0; i < 10; i++) {
    UIViewController *vc = [[UIViewController alloc] init];
    vc.title = [NSString stringWithFormat:@"%d", i];
    vc.view.backgroundColor = [UIColor colorWithRed:((255.0 * (i%2)) / 255) green:((255.0 * ((i+1)%2)) / 255) blue:((255.0 * ((i+2)%2)) / 255) alpha:1];
    [vcs addObject:vc];
}
GXSlideSegmentController *slideSegmentController = [[GXSlideSegmentController alloc] initWithViewControllers:vcs];
slideSegmentController.title = @"GXSlideSegmentController";
slideSegmentController.indicatorInsets = UIEdgeInsetsMake(0, 8, 0, 8);
slideSegmentController.indicator.backgroundColor = [UIColor redColor];
slideSegmentController.indicator.layer.cornerRadius = slideSegmentController.indicator.frame.size.height/2;
[self.navigationController pushViewController:slideSegmentController animated:YES]

GXSlideSegmentController 官网

https://github.com/gsyhei/GXSlideSegmentController

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...