This commit is contained in:
2025-12-03 19:05:53 +08:00
parent 25edf2d817
commit b00283cd96
2 changed files with 5 additions and 1 deletions

View File

@@ -7,11 +7,12 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "JXCategoryListContainerView.h" #import "JXCategoryListContainerView.h"
#import "KBTag.h"
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface HomeRankContentVC : UIViewController<JXCategoryListContentViewDelegate, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout> @interface HomeRankContentVC : UIViewController<JXCategoryListContentViewDelegate, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
@property (nonatomic, strong) UICollectionView *collectionView; @property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) KBTag *tagModel;
@end @end

View File

@@ -179,8 +179,11 @@
// <JXCategoryListContentViewDelegate> // <JXCategoryListContentViewDelegate>
- (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index { - (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index {
KBTag *tagModel = self.tags[index];
HomeRankContentVC *list = [[HomeRankContentVC alloc] init]; HomeRankContentVC *list = [[HomeRankContentVC alloc] init];
list.tagModel = tagModel;
self.collectionView = list.collectionView; self.collectionView = list.collectionView;
return list; return list;
} }