NHAlignmentFlowLayout icon indicating copy to clipboard operation
NHAlignmentFlowLayout copied to clipboard

A UIFlowLayout sublass that allows you to set the alignment instead of being only justified.

Results 5 NHAlignmentFlowLayout issues
Sort by recently updated
recently updated
newest added

I'm getting this warning on iOS 9 ``` 2016-07-09` 09:00:23.922 xxx[12818:298577] Logging only once for UICollectionViewFlowLayout cache mismatched frame 2016-07-09 09:00:23.922 xxx[12818:298577] UICollectionViewFlowLayout has cached frame mismatch for index path...

Hey! Love this layout. If you change the collection view to have a horizontal scroll, it crashes. I found the issue in the layoutAttributesForBottomAlignmentForItemAtIndexPath: method. Out of bounds. Easy fix....

If a section returns "0" has the numberOfItems, UICollectionView will crash with an assert because it was asked for the [layoutAttributesForItemAtIndexPath:] for an invalid indexPath.

Was getting a index out of range exception when specifying NSAlignmentBottomRightAligned and UICollectionViewScrollDirectionHorizontal.

for example, `layout.sectionInset = ...` or `layout.minimumInteritemSpacing = ...` works, but implementing delegate methods like ``` - (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section ``` or ``` - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section ```...