1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // TrainSummarySubViewController.m
- // LN_School
- //
- // Created by 张嵘 on 2019/7/26.
- // Copyright © 2019 Danson. All rights reserved.
- //
- #import "TrainSummarySubViewController.h"
- #import "TrainSummaryViewController.h"
- @interface TrainSummarySubViewController ()
- @end
- @implementation TrainSummarySubViewController
- #pragma mark - Life Cycle
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self initUI];
- }
- #pragma mark - Private Fuctions
- - (void)initUI {
- [self.collectionV hd_setAllDataArr:_subViewControllerSecArr];
- /// 点击回调
- __weak typeof(self) weakS = self;
- [self.collectionV hd_setAllEventCallBack:^(id backModel, HDCallBackType type) {
- if (type == HDCellCallBack) {
- [weakS clickCell:backModel];
- }else if (type == HDSectionHeaderCallBack){
- [weakS clickHeader:backModel];
- }
- }];
- self.collectionV.backgroundColor = RQBackGroundColor;
- }
- - (void)clickCell:(HDCellModel*)cellM {
- NSLog(@"点击了%zd--%zd cell",cellM.indexP.section,cellM.indexP.item);
- }
- - (void)clickHeader:(HDSectionModel*)secM {
- NSLog(@"点击了段头");
- }
- @end
|