123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // SignUpSituationSubViewController.m
- // LN_School
- //
- // Created by 张嵘 on 2019/7/31.
- // Copyright © 2019 Danson. All rights reserved.
- //
- #import "SignUpSituationSubViewController.h"
- //#import "StudentDetailViewController.h"
- @interface SignUpSituationSubViewController ()
- @end
- @implementation SignUpSituationSubViewController
- #pragma mark - Life Cycle
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self initUI];
- }
- #pragma mark - Private Fuctions
- - (void)initUI {
- HDSectionModel *subSecModel = _subViewControllerSecArr.firstObject;
- subSecModel.headerObj = _signUpSituationHeaderModel;
- [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;
- self.collectionV.collectionV.showsVerticalScrollIndicator = NO;
- self.collectionV.collectionV.showsHorizontalScrollIndicator = NO;
- }
- - (void)clickCell:(HDCellModel*)cellM {
- NSLog(@"点击了%zd--%zd cell",cellM.indexP.section,cellM.indexP.item);
- // StudentDetailViewController *vc = [[StudentDetailViewController alloc] init];
- // [self navPushHideTabbarToVC:vc];
- }
- - (void)clickHeader:(HDSectionModel*)secM {
- NSLog(@"点击了段头");
- }
- @end
|