UICollectionView Based Component For Automatically Creating Balanced Photo Galleries

Previously I mentioned a UICollectionView based component for creating Pinterest waterfall views ideal for dynamically updating content and an in-depth tutorial on how to create custom UICollectionView layouts.

Here’s another UICollectionView based component for displaying photos called NHBalancedFlowLayout from Niels de Hoog.

NHBalancedFlowLayout uses a special algorithm to maximize the use of provided screen space while keeping the images at the largest size possible. The algorithm considers the aspect ratio, and resizes images to the same height producing a terrific image display.

You can find NHBalancedFlowLayout on Github here.

You can read more about the algorithm used over on the Crispy Mountain website.

Included is a full demo showing the layout in action.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: UICollectionView Based Component For Automatically Creating Balanced Photo Galleries

©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *