Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions QBImagePicker/QBAssetsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,12 @@ - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollection

CGFloat width = (CGRectGetWidth(self.view.frame) - 2.0 * (numberOfColumns - 1)) / numberOfColumns;

// Fatal Exception: NSInternalInconsistencyException negative sizes are not supported in the flow layout
// The width and height of the specified item. Both values must be greater than 0.
if (width <= 0) {
width = 1.0f;
}

return CGSizeMake(width, width);
}

Expand Down