3
This commit is contained in:
@@ -122,12 +122,12 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
switch (indexPath.section) {
|
||||
case KBSkinDetailSectionHeader: {
|
||||
// 高度 = 图片 0.58W + 文案与上下留白(≈56)
|
||||
CGFloat h = contentW * 0.58 + 56;
|
||||
CGFloat h = KBFit(264) + 30;
|
||||
return CGSizeMake(contentW, h);
|
||||
}
|
||||
case KBSkinDetailSectionTags: {
|
||||
CGFloat h = [KBSkinTagsContainerCell heightForTags:self.tags width:W];
|
||||
return CGSizeMake(contentW, h);
|
||||
return CGSizeMake(contentW, 25);
|
||||
}
|
||||
case KBSkinDetailSectionTitle: {
|
||||
return CGSizeMake(contentW, 44);
|
||||
@@ -144,7 +144,17 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
}
|
||||
|
||||
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
|
||||
return UIEdgeInsetsMake(12, 16, 12, 16);
|
||||
// 控制各区上下留白,缩小 Header 与 Tags 之间的间距
|
||||
switch (section) {
|
||||
case KBSkinDetailSectionHeader:
|
||||
// 顶部与导航之间 12,底部稍微缩小
|
||||
return UIEdgeInsetsMake(12, 16, 4, 16);
|
||||
case KBSkinDetailSectionTags:
|
||||
// 与 Header 更贴近一些
|
||||
return UIEdgeInsetsMake(14, 16, 5, 16);
|
||||
default:
|
||||
return UIEdgeInsetsMake(0, 16, 12, 16);
|
||||
}
|
||||
}
|
||||
|
||||
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section {
|
||||
|
||||
Reference in New Issue
Block a user