Expandable UICollectionViewCell

后端 未结 3 877
囚心锁ツ
囚心锁ツ 2020-12-13 16:27

I\'m trying to program an expandable UICollectionViewCell. If the user presses the topbutton, the cell should expand to a different height and reveal the underlying content.

3条回答
  •  暖寄归人
    2020-12-13 17:02

    You can use header to show non-expand cell. And when you two a button or something in it , then you can insert other part (expanding part ) as a row in that section which the header belongs to.

    Benefits - you can use many provided animations when the expanding happen.

提交回复
热议问题