- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/fergusding/FDSlideBar
- 软件文档: https://github.com/fergusding/FDSlideBar
软件介绍
FDSlideBar 是一个顶部滑动菜单,如常见的网易、腾讯新闻等样式。该控件支持自定颜色、字体等多种样式风格。菜单间切换流畅,具有较好的体验性。下部的内容展示经过挣扎,最后选择了 UITableView 实现,从而很好地解决了ScrollView的内存问题,也获得了很好地原生滑动效果。
FDSlideBar *sliderBar = [[FDSlideBar alloc] init];
sliderBar.backgroundColor = [UIColor colorWithRed:0 / 255.0 green:128 / 255.0 blue:128 / 255.0 alpha:1.0];
// Init the titles of all the item
sliderBar.itemsTitle = @[@"要闻", @"视频", @"上海", @"娱乐", @"体育NBA", @"财经", @"科技", @"社会", @"军事", @"时尚", @"汽车", @"游戏", @"图片", @"股票"];
// Set some style to the slideBar
sliderBar.itemColor = [UIColor whiteColor];
sliderBar.itemSelectedColor = [UIColor orangeColor];
sliderBar.sliderColor = [UIColor orangeColor];
// Add the callback with the action that any item be selected
[sliderBar slideBarItemSelectedCallback:^(NSUInteger idx) {
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:idx inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:NO];
}];
[self.view addSubview:sliderBar];
_slideBar = sliderBar;HTTP权威指南
David Gourley、Brian Totty / 陈涓、赵振平 / 人民邮电出版社 / 2012-9 / 109.00元
超文本转移协议(Hypertext Transfer Protocol,HTTP)是在万维网上进行通信时所使用的协议方案。HTTP有很多应用,但最著名的是用于web浏览器和web服务器之间的双工通信。 HTTP起初是一个简单的协议,因此你可能会认为关于这个协议没有太多好 说的。但现在,你手上拿着的是却一本两磅重 的书。如果你对我们怎么会写出一本650页 的关于HTTP的书感到奇怪的话,可以去......一起来看看 《HTTP权威指南》 这本书的介绍吧!
