可设置纵横方向和排列数的瀑布流布局 GXWaterCollectionViewLayout
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: 跨平台
- 软件首页: https://github.com/gsyhei/GXWaterCollectionViewLayout
- 软件文档: https://github.com/gsyhei/GXWaterCollectionViewLayout
- 官方下载: https://github.com/gsyhei/GXWaterCollectionViewLayout
软件介绍
GXWaterCollectionViewLayout 是一个好用的瀑布流布局,可以设置纵横方向和排列数等。
Requirements
iOS 7.0 or later
Xcode 8.0 or later
Usage in you Podfile:
pod 'GXWaterCollectionViewLayout'
可以设置纵横方向
@property (nonatomic, assign) UICollectionViewScrollDirection scrollDirection; //滚动方向
可以设置的其它参数
@property (nonatomic, assign) NSInteger numberOfColumns; //瀑布流横排数 @property (nonatomic, assign) CGFloat lineSpacing; //纵向间距 @property (nonatomic, assign) CGFloat interitemSpacing; //横向间距 @property (nonatomic, assign) CGSize headerSize; //页眉尺寸 @property (nonatomic, assign) CGSize footerSize; //页脚尺寸 @property (nonatomic, assign) UIEdgeInsets sectionInset; //分类inset
实例应用代码
// 初始化瀑布流布局 self.waterLayout = [[GXWaterCollectionViewLayout alloc] init]; self.waterLayout.numberOfColumns = 4; self.waterLayout.lineSpacing = 10.0; self.waterLayout.interitemSpacing = 10.0; self.waterLayout.sectionInset = UIEdgeInsetsMake(20, 20, 20, 20); self.waterLayout.scrollDirection = UICollectionViewScrollDirectionVertical; self.waterLayout.headerSize = CGSizeMake(self.view.bounds.size.width, 40); self.waterLayout.footerSize = CGSizeMake(self.view.bounds.size.width, 40); self.waterLayout.delegate = self; // 初始化UICollectionView self.waterCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:self.waterLayout]; self.waterCollectionView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight; self.waterCollectionView.backgroundColor = [UIColor whiteColor]; self.waterCollectionView.delegate = self; self.waterCollectionView.dataSource = self; [self.view addSubview:self.waterCollectionView];
方向UICollectionViewScrollDirectionVertical效果
Wireshark网络分析实战
[以色列 Yoram Orzach / 古宏霞、孙余强 / 人民邮电出版社 / 2015-1 / 79.00元
本书采用步骤式为读者讲解了一些使用Wireshark来解决网络实际问题的技巧。 本书共分为14章,其内容涵盖了Wireshark的基础知识,抓包过滤器的用法,显示过滤器的用法,基本/高级信息统计工具的用法,Expert Info工具的用法,Wiresahrk在Ethernet、LAN及无线LAN中的用法,ARP和IP故障分析,TCP/UDP故障分析,HTTP和DNS故障分析,企业网应用程序行......一起来看看 《Wireshark网络分析实战》 这本书的介绍吧!
