diff --git a/keyBoard/Class/Home/VC/HomeRankContentVC.h b/keyBoard/Class/Home/VC/HomeRankContentVC.h index 23553b5..6dd8c2e 100644 --- a/keyBoard/Class/Home/VC/HomeRankContentVC.h +++ b/keyBoard/Class/Home/VC/HomeRankContentVC.h @@ -7,11 +7,12 @@ #import #import "JXCategoryListContainerView.h" - +#import "KBTag.h" NS_ASSUME_NONNULL_BEGIN @interface HomeRankContentVC : UIViewController @property (nonatomic, strong) UICollectionView *collectionView; +@property (nonatomic, strong) KBTag *tagModel; @end diff --git a/keyBoard/Class/Home/VC/HomeRankVC.m b/keyBoard/Class/Home/VC/HomeRankVC.m index 86510f4..f764764 100644 --- a/keyBoard/Class/Home/VC/HomeRankVC.m +++ b/keyBoard/Class/Home/VC/HomeRankVC.m @@ -179,8 +179,11 @@ // 返回各个列表菜单下的实例,该实例需要遵守并实现 协议 - (id)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index { + KBTag *tagModel = self.tags[index]; HomeRankContentVC *list = [[HomeRankContentVC alloc] init]; + list.tagModel = tagModel; self.collectionView = list.collectionView; + return list; }