更改UICollectionViewFlowLayout以使单元格从下往上显示

时间:2017-11-30 12:36:36

标签: ios swift

默认UICollctionViewFlowLayout执行此操作:

|-------|
|A      |
|-------| 
|B      |
|-------|
|C      |
|-------|
|D      |
|-------|
|       |
|_______| // Notice the gap here at the bottom, where all cells start from the top

但我想这样做:

________
|       |
|       | // The gap is at the top now, and the cells should grow from the bottom
|-------|
|A      |
|-------| 
|B      |
|-------|
|C      |
|-------|
|D      |
|_______|

如何更改UICollectionViewFlowLayout来执行此操作?

0 个答案:

没有答案