12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // ExamArrangeSubViewController.m
- // LN_School
- //
- // Created by 张嵘 on 2019/7/29.
- // Copyright © 2019 Danson. All rights reserved.
- //
- #import "ExamArrangeSubViewController.h"
- @interface ExamArrangeSubViewController ()
- @end
- @implementation ExamArrangeSubViewController
- #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;
- self.collectionV.collectionV.showsVerticalScrollIndicator = NO;
- self.collectionV.collectionV.showsHorizontalScrollIndicator = NO;
- }
- - (void)clickCell:(HDCellModel*)cellM {
- NSLog(@"点击了%zd--%zd cell",cellM.indexP.section,cellM.indexP.item);
- }
- - (void)clickHeader:(HDSectionModel*)secM {
- NSLog(@"点击了段头");
- }
- @end
|