2
This commit is contained in:
@@ -131,7 +131,14 @@
|
||||
// 点击选中或者滚动选中都会调用该方法。适用于只关心选中事件,不关心具体是点击还是滚动选中的。
|
||||
- (void)categoryView:(JXCategoryBaseView *)categoryView didSelectedItemAtIndex:(NSInteger)index {
|
||||
NSLog(@"%@", NSStringFromSelector(_cmd));
|
||||
self.
|
||||
// 拿到当前显示的列表 VC(已创建/显示过的会记录在 validListDict 中)
|
||||
id<JXCategoryListContentViewDelegate> list = self.listContainerView.validListDict[@(index)];
|
||||
if ([list isKindOfClass:[HomeRankContentVC class]]) {
|
||||
HomeRankContentVC *currentVC = (HomeRankContentVC *)list;
|
||||
// 如需拿到对应的 collectionView,可以在这里同步一下
|
||||
self.collectionView = currentVC.collectionView;
|
||||
// TODO: 在这里对 currentVC 做需要的操作
|
||||
}
|
||||
// 侧滑手势处理
|
||||
self.navigationController.interactivePopGestureRecognizer.enabled = (index == 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user