如何使UICollectionView单元格可移动?

时间:2022-07-06 23:11:06

I want to make additional categories in my UICollectionView, just like here http://i.stack.imgur.com/aJcpr.png

我想在我的UICollectionView中创建其他类别,就像这里http://i.stack.imgur.com/aJcpr.png

Is it possible to make using UICollectionView? How can we insert the additional view between cells?

是否可以使用UICollectionView?我们如何在单元格之间插入附加视图?

1 个解决方案

#1


0  

I think, you can implement the callout views (that appear for a selected cell) as section footers. In order to achieve that, you create a section for every row in the collection view. Then, when a cell is selected, you expand the footer that belongs to that row (section). There's a tutorial explaining how to expand headers (footers should be similar) animated utilizing a custom collection view layout.

我认为,您可以将标注视图(对于选定的单元格显示)实现为区域页脚。为了实现这一点,您可以为集合视图中的每一行创建一个部分。然后,当选择单元格时,您展开属于该行(节)的页脚。有一个教程解释如何使用自定义集合视图布局扩展标题(页脚应该类似)动画。

#1


0  

I think, you can implement the callout views (that appear for a selected cell) as section footers. In order to achieve that, you create a section for every row in the collection view. Then, when a cell is selected, you expand the footer that belongs to that row (section). There's a tutorial explaining how to expand headers (footers should be similar) animated utilizing a custom collection view layout.

我认为,您可以将标注视图(对于选定的单元格显示)实现为区域页脚。为了实现这一点,您可以为集合视图中的每一行创建一个部分。然后,当选择单元格时,您展开属于该行(节)的页脚。有一个教程解释如何使用自定义集合视图布局扩展标题(页脚应该类似)动画。