仿网易新闻侧滑视图 GXSlideSegmentController
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/gsyhei/GXSlideSegmentController
- 软件文档: https://github.com/gsyhei/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]
C++标准模板库编程实战
Ivor Horton / 郭小虎、程聪 / 2017-1
《C++标准模板库编程实战》介绍最新的C++14标准的API、库和扩展,以及如何将它们运用到C++14程序中。在书中,作者Ivor Horton 则阐述了什么是STL,以及如何将它们应用到程序中。我们将学习如何使用容器、迭代器,以及如何定义、创建和应用算法。此外,还将学习函数对象和适配器,以及它们的用法。 阅读完本书之后,你将能够了解如何扩展STL,如何定义自定义类型的C++组件,你还将能够......一起来看看 《C++标准模板库编程实战》 这本书的介绍吧!
