快速查看收藏夹视图的自定义布局? [英] Custom layout for collection view in swift?

查看:73
本文介绍了快速查看收藏夹视图的自定义布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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:

如何实现这种布局?

推荐答案

逐步遵循此URL....

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

这篇关于快速查看收藏夹视图的自定义布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆