NHBalancedFlowLayout for iOS – Cocoa Controls Posted on 08.11.2013 by Darrarski Nov 08 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