NHBalancedFlowLayout

UICollectionViewLayout subclass for displaying items of different sizes in a grid without wasting any visual space. Inspired by: http://www.crispymtn.com/stories/the-algorithm-for-a-perfectly-balanced-photo-gallery

  • Owner: njdehoog/NHBalancedFlowLayout
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

NHBalancedFlowLayout

UICollectionViewLayout subclass for displaying items of different sizes in a grid without wasting any visual space. Inspired by: http://www.crispymtn.com/stories/the-algorithm-for-a-perfectly-balanced-photo-gallery

This project is no longer maintained. For a more up-to-date version, check out: https://github.com/graetzer/NHBalancedFlowLayout

Notes

  • Tested with iOS 7, but should be compatible with iOS6 as well
  • Works with iPhone and iPad
  • All interface orientations are supported

Screenshots

Installation

The easiest way is to use CocoaPods. If you don't already, here's a guide.

pod 'NHBalancedFlowLayout', '~> 0.2'

If you don't use CocoaPods, you'll need to copy the following files into your project:

  • NHBalancedFlowLayout.h
  • NHBalancedFlowLayout.m
  • NHLinearPartition.h
  • NHLinearPartition.m

Credits

Attributions for the photos in the same order as they appear in the demo:

Main metrics

Overview
Name With Ownernjdehoog/NHBalancedFlowLayout
Primary LanguageObjective-C
Program languageRuby (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2013-11-07 08:38:29
Pushed At2016-02-27 18:16:58
Last Commit At2015-12-28 13:43:50
Release Count4
Last Release Name0.2 (Posted on 2014-01-24 15:00:41)
First Release Name0.1 (Posted on 2013-11-07 14:58:16)
用户参与
Stargazers Count1.3k
Watchers Count41
Fork Count104
Commits Count64
Has Issues Enabled
Issues Count28
Issue Open Count11
Pull Requests Count7
Pull Requests Open Count4
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private