SignUpSituationSubViewController.m 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // SignUpSituationSubViewController.m
  3. // LN_School
  4. //
  5. // Created by 张嵘 on 2019/7/31.
  6. // Copyright © 2019 Danson. All rights reserved.
  7. //
  8. #import "SignUpSituationSubViewController.h"
  9. //#import "StudentDetailViewController.h"
  10. @interface SignUpSituationSubViewController ()
  11. @end
  12. @implementation SignUpSituationSubViewController
  13. #pragma mark - Life Cycle
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. [self initUI];
  17. }
  18. #pragma mark - Private Fuctions
  19. - (void)initUI {
  20. HDSectionModel *subSecModel = _subViewControllerSecArr.firstObject;
  21. subSecModel.headerObj = _signUpSituationHeaderModel;
  22. [self.collectionV hd_setAllDataArr:_subViewControllerSecArr];
  23. /// 点击回调
  24. __weak typeof(self) weakS = self;
  25. [self.collectionV hd_setAllEventCallBack:^(id backModel, HDCallBackType type) {
  26. if (type == HDCellCallBack) {
  27. [weakS clickCell:backModel];
  28. }else if (type == HDSectionHeaderCallBack){
  29. [weakS clickHeader:backModel];
  30. }
  31. }];
  32. self.collectionV.backgroundColor = RQBackGroundColor;
  33. self.collectionV.collectionV.showsVerticalScrollIndicator = NO;
  34. self.collectionV.collectionV.showsHorizontalScrollIndicator = NO;
  35. }
  36. - (void)clickCell:(HDCellModel*)cellM {
  37. NSLog(@"点击了%zd--%zd cell",cellM.indexP.section,cellM.indexP.item);
  38. // StudentDetailViewController *vc = [[StudentDetailViewController alloc] init];
  39. // [self navPushHideTabbarToVC:vc];
  40. }
  41. - (void)clickHeader:(HDSectionModel*)secM {
  42. NSLog(@"点击了段头");
  43. }
  44. @end