求帮助,collectionView 自定义cell间距问题

2025-05-11 19:04:34
推荐回答(1个)
回答1:

-(UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section { return UIEdgeInsetsMake(0.001, 0.001, 0.001, 0.001); }