A layout very similar to MosaicUI that uses Lightbox algorithm described in @vjeux's blog and takes advantage of UICollectionView.
- Import all the files from Libs/MosaicLayout folder.
- Add a UICollectionView view, change its layout to "Custom" and set its class to "MosaicLayout".
- Implement UICollectionView's delegates.
- Implement MosaicLayoutDelegate protocol.
-(float)collectionView:(UICollectionView *)collectionView relativeHeightForItemAtIndexPath:(NSIndexPath *)indexPath;
-(BOOL)collectionView:(UICollectionView *)collectionView isDoubleColumnAtIndexPath:(NSIndexPath *)indexPath;
-(NSUInteger)numberOfColumnsInCollectionView:(UICollectionView *)collectionView;
- iOS 6
- ARC
This project is under MIT License. See LICENSE file for more information.