CellSizeToFitLabel icon indicating copy to clipboard operation
CellSizeToFitLabel copied to clipboard

Add cells at run time it occurs issues.

Open amir-272015 opened this issue 8 years ago • 1 comments

When Add new rows in collectionview, It not reload all cells. if let flowLayout = collectionView.collectionViewLayout as? UICollectionViewFlowLayout { flowLayout.estimatedItemSize = CGSize(width: 1, height: 1) //use auto layout for the collection view } - this line cause the issue.

Please confirm the issue and give a solution of this. Thank you.

amir-272015 avatar Aug 22 '17 12:08 amir-272015

Have you tried using invalidateLayout? Maybe your data have changed so then you need to indicate that the layout attributes need to be changed as well. This will recalculate the correct sizes for your cells.

josmanperez avatar Sep 07 '17 15:09 josmanperez