Open DotaAntiMagic opened 5 years ago
如果在scrollview里面嵌套了collectionview, 并且collectionview还是瀑布流样式的,每个item高度不一致,如何使collectionview的高度根据item的个数自适应呢
用kvo监听contentsize
如果在scrollview里面嵌套了collectionview, 并且collectionview还是瀑布流样式的,每个item高度不一致,如何使collectionview的高度根据item的个数自适应呢