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

  • 所有者: njdehoog/NHBalancedFlowLayout
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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:

主要指标

概览
名称与所有者njdehoog/NHBalancedFlowLayout
主编程语言Objective-C
编程语言Ruby (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2013-11-07 08:38:29
推送于2016-02-27 18:16:58
最后一次提交2015-12-28 13:43:50
发布数4
最新版本名称0.2 (发布于 2014-01-24 15:00:41)
第一版名称0.1 (发布于 2013-11-07 14:58:16)
用户参与
星数1.3k
关注者数41
派生数104
提交数64
已启用问题?
问题数28
打开的问题数11
拉请求数7
打开的拉请求数4
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?