仿网易新闻侧滑视图 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]
像计算机科学家一样思考Python
(美)Allen B.Downey / 赵普明 / 人民邮电出版社 / 2013-8 / 49
《像计算机科学家一样思考python》按照培养读者像计算机科学家一样的思维方式的思路来教授python语言编程。全书贯穿的主体是如何思考、设计、开发的方法,而具体的编程语言,只是提供一个具体场景方便介绍的媒介。《像计算机科学家一样思考python》并不是一本介绍语言的书,而是一本介绍编程思想的书。和其他编程设计语言书籍不同,它不拘泥于语言细节,而是尝试从初学者的角度出发,用生动的示例和丰富的练习来......一起来看看 《像计算机科学家一样思考Python》 这本书的介绍吧!
