Skip to content

sekouperry/MosaicLayout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MosaicLayout

This is a very similar UI component to MosaicUI.

It's using the Lightbox algorithm described in @vjeux's blog and taking advantage of UICollectionView.

Landscape on iPad

##Instructions

  • 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.

##MosaicLayoutDelegate

-(float)collectionView:(UICollectionView *)collectionView relativeHeightForItemAtIndexPath:(NSIndexPath *)indexPath;
-(BOOL)collectionView:(UICollectionView *)collectionView isDoubleColumnAtIndexPath:(NSIndexPath *)indexPath;
-(NSUInteger)numberOfColumnsInCollectionView:(UICollectionView *)collectionView;

##Requirements

  • iOS 6
  • ARC

##License This project is under MIT License. See LICENSE file for more information.

About

MosaicLayout using UICollectionViews

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published