From c108077178c31f82b31edd2ab8e4335261b058b6 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Fri, 19 Dec 2025 15:40:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=96=B0=E8=AF=A6=E6=83=85=E5=A4=B4?= =?UTF-8?q?=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keyBoard/Class/Shop/VC/KBSkinDetailVC.m | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/keyBoard/Class/Shop/VC/KBSkinDetailVC.m b/keyBoard/Class/Shop/VC/KBSkinDetailVC.m index 0c64f60..b178dce 100644 --- a/keyBoard/Class/Shop/VC/KBSkinDetailVC.m +++ b/keyBoard/Class/Shop/VC/KBSkinDetailVC.m @@ -342,11 +342,25 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) { } weakSelf.tags = tagNames.copy; [weakSelf updateBottomBarAppearance]; - [weakSelf.collectionView reloadData]; + [weakSelf refreshHeaderAndTags]; }); }]; } +- (void)refreshHeaderAndTags { + if (!self.collectionView) { return; } + NSIndexSet *sections = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(KBSkinDetailSectionHeader, 2)]; + [UIView performWithoutAnimation:^{ + [self.collectionView reloadSections:sections]; + [self.collectionView layoutIfNeeded ]; + }]; + NSIndexPath *headerIndexPath = [NSIndexPath indexPathForItem:0 inSection:KBSkinDetailSectionHeader]; + KBSkinDetailHeaderCell *cell = (KBSkinDetailHeaderCell *)[self.collectionView cellForItemAtIndexPath:headerIndexPath]; + if (cell) { + [cell configWithDetail:self.detailModel]; + } +} + - (KBShopVM *)shopVM { if (!_shopVM) { _shopVM = [[KBShopVM alloc] init];