I use the UICollectionView layout in my iPad application. I have cells with different widths and heights. When I used the UICollectionViewFlowLayout subclass as a layout to represent the collection, it shows spaces between cells.
If there is a large cell in the column, it draws a grid and small cells in that column to get the rendering centered by that big cell in the column. Is there a better way to rigidly pack cells?
I use horizontal scrolling. I tried using the layoutAttributesForElementsInRect: method, but could not succeed.
Please let me know if someone has done the same using the layoutAttributesForElementsInRect: method or in another way ...
Please find the attached image. I need the same solution 
Thanks in advance...
Swapnil
source share