swift中集合视图的自定义布局? [英] Custom layout for collection view in swift?
本文介绍了swift中集合视图的自定义布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 UICollectionView 的一个部分中有 7 个单元格.我已经搜索了几个小时,但我只能找到有关 CollectionFlow 和具有数百个单元格的自定义布局的信息.我想要的只是使用如下图的布局在集合视图中显示 7 个具有不同标识符的单元格:
I have 7 cells in one section in a UICollectionView. I have searched for hours but all I can find is information about CollectionFlow and Custom layouts with hundreds of cells. All I want is display 7 cells with different identifiers in a collection view using a layout like this image:
我怎样才能实现这种布局?
How can I achieve this layout?
推荐答案
按照这个网址一步一步来....
Follow this URL step by step....
SWIFT:
http://www.raywenderlich.com/78550/beginning-ios-collection-views-swift-part-1
目标 C:
https://github.com/eoghain/RBCollectionViewBalancedColumnLayout
这篇关于swift中集合视图的自定义布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文