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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?