ios - 如何向 UICollectionView 添加单独的行

标签 ios uitableview

我在一个 collectionView 中有几个组,我想在每个组中添加一个单独的行。有没有好的方法添加?
enter image description here

最佳答案

那么在我看来,您可以在每个部分中添加一个标题 View 。在标题 View 中,添加一个高度为 1px 的 UIImageView。然后给这个 ImageView 设置一个 1px 高度的灰色线条图像。

关于ios - 如何向 UICollectionView 添加单独的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35737183/

相关文章:

ios - 如何获得高质量的 iOS 屏幕截图?

ios - 如何在 iOS8.1 上使用 Swift 按顺序拍摄多张照片(每张延迟 1 秒)?

iphone - 如何防止UItable View 的tableHeaderView滚动,粘在顶部

ios7 如何获取 UITableViewCell 的 UISwitch 值?

ios - 当用户没有完全滑动以删除表格 View 单元格时,如何禁用/启用编辑按钮?

ios - UIStackView() 与 UIStackView(frame : . 零) 初始化程序

ios - 在实际需要频繁释放大量内存的应用程序中长时间使用 NSZombies

ios - 向 SKLabelNode 添加背景

iphone - UITableViewCell 中的 UITextField

ios - 从 heightForRowAtIndexPath 中调用 cellForRowAtIndexPath — 替代?