Asked thg 8 30, 2021 2:38 CH 38 0 1
  • 38 0 1
0

Autosizing Cells trong UICollectionView

Share
  • 38 0 1

Các bác chỉ giáo cho e với ạ, E muốn size của cell tự động điều chỉnh theo chiều dài của chứ như hình thì làm như thế nào ạ

1 ANSWERS


Answered thg 9 4, 2021 4:09 SA
0

Sử dụng flowlayout

self.flowLayout.estimatedItemSize = UICollectionViewFlowLayout.automaticSize

Share
Viblo
Let's register a Viblo Account to get more interesting posts.