I would like to use the new UICollectionView, but I'm not sure if it is possible to build the following:
As you can see, there are two different cell types. One is portrait, one is landscape. When I use the flow layout, it always creates rows of cells which are as high as the tallest cell. Not this kind of "fluid" layout I need.
Is it possible at all to achieve this kind of layout with a UICollectionView?
Has anyone done something like this before? Are there any samples? I already checked out many tutorials and the Class References ...
Thanks!
flowLayout = ... But in fact you can set the collection view's collectionViewLayout , and it does just what you want: Assigning a new layout object to this property causes the new layout to be applied ... to the collection view's items.
A layout object that organizes items into a grid with optional header and footer views for each section.
Tableiw is a simple list, which displays single-dimensional rows of data. It's smooth because of cell reuse and other magic. 2. UICollectionView is the model for displaying multidimensional data .
You can check out https://github.com/bryceredd/RFQuiltLayout . Looks like something you can use for this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With