Code Monkey home page Code Monkey logo

mosaiclayout's Introduction

MosaicLayout

A layout very similar to MosaicUI that uses Lightbox algorithm described in @vjeux's blog and takes 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.

mosaiclayout's People

Contributors

betzerra avatar bryant1410 avatar chompas avatar vinnyoodles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mosaiclayout's Issues

POD

can you please make a poc for it,
thank you

Scroll Direction

This layout is amazing, really like , thank you very much !

The Scroll Direction is vertical , how to make it Horizontal ?

Swift?

Any chance you will turn to swift?
Very nice library btw.

Support for image remotely

Hey there, i just wish to confirm if this control supports loading image remotely. Will the balance layout still work? Is there a requirement to know the image size upfront? Thanks.

Changing font

Hi,

I can't change the font in MosaicCell.m

I changed to a custom font but the changes are not visible in the app. When i change the color of the font the changer do appear.

Changed the font attribute on line 86:
_titleLabel.font = [UIFont fontWithName:@"Karla-Regular" size:15];

Swift support

Hi,

Are you planning on porting the code to swift? If not how we can integrate the mosiclayout on swift based apps?

Thanks

Add as Subview programatically

Hello, i wish to add this control as a subview. Or programmatically (as i dont use storyboard) Can you please provide guidance. Thank you.

MosaicLayout with section header ?

Hello,
I try to add a "header section" in your library "Mosaic Layout" but I have some difficulties. Have you ever tried?

Thank you.

cbigas.

How can I detect the selected cell?

First thanks very much for the controller!
I need to detect when the user select a cell, please!

Something like this? :S!

  - (void)collectionView:(UICollectionView *)collectionView
 didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
  NSLog(@"select %@", indexPath); 
   }

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.