I am designing an app that has the following layout. I was thinking of having the view as a collectionview.
A and B are a custom collection cells. How would I design the app so that the second and third rows have 2 and 3 cells as shown in the image?
I tried over-riding the sizeForItemAt indexPath
method and then calculating the size of each cell based on the row it is in.
Not only it seems a little odd and but the cells don't align properly either.
I tried setting the estimatedItemSize
property as well as over-riding preferredLayoutAttributesFitting
by following this link.
Is there an easier way to do this UI ? Should I remove colleciton view and go with plain ol tableviews ? Any help would be much appreciated.