AppointmentManageSubViewController.m 957 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // AppointmentManageSubViewController.m
  3. // LN_School
  4. //
  5. // Created by 张嵘 on 2019/7/31.
  6. // Copyright © 2019 Danson. All rights reserved.
  7. //
  8. #import "AppointmentManageSubViewController.h"
  9. @interface AppointmentManageSubViewController ()
  10. @end
  11. @implementation AppointmentManageSubViewController
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. [self.collectionV hd_setAllDataArr:_subViewControllerSecArr];
  15. /// 点击回调
  16. __weak typeof(self) weakS = self;
  17. [self.collectionV hd_setAllEventCallBack:^(id backModel, HDCallBackType type) {
  18. if (type == HDCellCallBack) {
  19. [weakS clickCell:backModel];
  20. }else if (type == HDSectionHeaderCallBack){
  21. [weakS clickHeader:backModel];
  22. }
  23. }];
  24. self.collectionV.backgroundColor = RQBackGroundColor;
  25. }
  26. - (void)clickCell:(HDCellModel*)cellM {
  27. NSLog(@"点击了%zd--%zd cell",cellM.indexP.section,cellM.indexP.item);
  28. }
  29. - (void)clickHeader:(HDSectionModel*)secM {
  30. NSLog(@"点击了段头");
  31. }
  32. @end