njdehoog / 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
MIT License
1.34k stars 106 forks source link

Load images remotely #35

Closed toftof closed 9 years ago

toftof commented 9 years ago

Hello, this may not be an issue. Will the balanced layout work if the images are loaded from a remote location? Im using afnetworking to retrieve an array of image URLs. Thanks for your help.

njdehoog commented 9 years ago

Well it can work, but to calculate the layout you'll need to know the image sizes in advance.