swift - 如何在 CollectionView 中水平滚动整个部分(Swift)

标签 swift

我在collectionView 中有几个部分。 当前标题位于顶部并垂直滚动。 但我希望它水平滚动并且顶部的标题保持粘性。 我认为它可以通过 UICollectionViewFlow 完成,但不确定。 请帮忙提供 swift 2.0 中的示例代码

下图中collectionView的当前设置 Current setting of collectionView in image below

日历图像 enter image description here

最佳答案

您必须将属性检查器中的滚动方向更改为水平

关于swift - 如何在 CollectionView 中水平滚动整个部分(Swift),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31595260/

相关文章:

iOS Carthage 提交到 App Store 问题 : Unsupported Architecture, Invalid Segment Alignment

swift - 在 Swift 中,我如何访问具有动态类型检查的属性,例如 Obj-C 的 id?

ios - 手势不适用于包含 UITableViewControllers 的 UIPageViewController

ios - 在 xcode 中从一个 View Controller 拖动到另一个 View Controller 时,"show as popover"没有出现?

ios - 将字典映射到 ios 中的 TableView ?

ios - 在 Swift 中以编程方式更改 NSIndexPath

swift - 如何在 Swift 3 中消除警告

ios - 在 tableViewCell 上运行动画会阻止用户交互吗?

swift - 我是否需要释放一个 UnsafeBufferPointer 或在缓冲区指针的起始内存位置使用的 UnsafePointer?

swift - 为什么不建议将 UIImage 数据保存到 UserDefaults?