仿网易新闻侧滑视图 GXSlideSegmentController

码农软件 · 软件分类 · 视图布局(View Layout) · 2019-06-22 10:44:22

软件介绍

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

使用方法:

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]

本文地址:https://codercto.com/soft/d/8519.html

Ruby元编程(第2版)

Ruby元编程(第2版)

[意] Paolo Perrotta / 廖志刚 / 华中科技大学出版社 / 2015-8-1 / 68.80

《Ruby元编程(第2版)》在大量剖析实例代码的基础上循序渐进地介绍Ruby特有的实用编程技巧。通过分析案例、讲解例题、回顾Ruby类库的实现细节,作者不仅向读者展示了元编程的优势及其解决问题的方式,更详细列出33种发挥其优势的编程技巧。本书堪称动态语言设计模式。Ruby之父松本行弘作序推荐。一起来看看 《Ruby元编程(第2版)》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

SHA 加密
SHA 加密

SHA 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具