gliubc
6/14/2018 - 3:01 AM

UICollectionViewFlowLayout

UICollectionViewFlowLayout

    UICollectionViewFlowLayout *layout = [UICollectionViewFlowLayout new];
    layout.sectionInset = UIEdgeInsetsMake(5, 5, 5, 5);
    layout.minimumInteritemSpacing = 0;
    layout.minimumLineSpacing = 0;
    [self.collectionView setCollectionViewLayout:layout animated:NO];