组头组尾不受影响
#pragma mark - 调整内容的边距
-(UIEdgeInsets)collectionView:(UICollectionView*)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
if(section ==0) {
returnUIEdgeInsetsMake(0,20,0,20);
}elseif(section ==1) {
returnUIEdgeInsetsMake(0,0,0,0);
}else{
returnUIEdgeInsetsMake(0,0,0,0);
}
}
网友评论