2

I have a collection view with only 1 cell to start with the user can add more cells as they please. The collection view does not scroll until I have enough cells to go past the scrollview frame.

How can I allow the collection view to scroll up and down without having more cells?

This behavior is similar to an empty table view. You can still scroll up and down just a bit.

I have been searching but cannot find a way to solve this, and honestly it is a weird question to ask I guess.

Any help is great, thanks!

4

1 回答 1

3

集合视图和表格视图都是 UIScrollView 的子类。您正在寻找的行为是滚动视图的一部分 - 由bouncesalwaysBounceVertical属性控制。

文档在这里

于 2012-12-30T08:22:29.557 回答