ANDistributedFlowLayout 1.0.1

ANDistributedFlowLayout 1.0.1

测试已测试
lang语言 Obj-CObjective C
许可证 MIT
发布最后发布2015年9月

Andrew Naylor维护。



ANDistributedFlowLayout 是 UICollectionViewFlowLayout 的子类,它可以将单元格均匀分布在每个行中。

用法

# In your Podfile

pod 'ANDistributedFlowLayout'

Objective-C

ANDistributedFlowLayout *layout = [ANDistributedFlowLayout new];
layout.minimumInteritemSpacing = 10.f;
layout.minimumLineSpacing = 10.f;

[[UICollectionViewController alloc] initWithCollectionViewLayout:layout];

Swift

let layout = ANDistributedFlowLayout()
layout.minimumInteritemSpacing = 10.0
layout.minimumLineSpacing = 10.0

UICollectionViewController(collectionViewLayout: layout)

示例

请参阅 ./Example 应用程序中使用的布局