12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // AppointmentManageSubViewController.m
- // LN_School
- //
- // Created by 张嵘 on 2019/7/31.
- // Copyright © 2019 Danson. All rights reserved.
- //
- #import "AppointmentManageSubViewController.h"
- @interface AppointmentManageSubViewController ()
- @end
- @implementation AppointmentManageSubViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- [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
|