12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // NYFailSpecialExerciseHeaderView.m
- // jiaPei
- //
- // Created by Ning.ge on 2024/12/11.
- // Copyright © 2024 JCZ. All rights reserved.
- //
- #import "NYFailSpecialExerciseHeaderView.h"
- @interface NYFailSpecialExerciseHeaderView ()
- @property (nonatomic, readwrite, strong) NYFailSpecialExerciseGroupViewModel *viewModel;
- @end
- @implementation NYFailSpecialExerciseHeaderView
- + (instancetype)reusableViewWithCollectionView:(UICollectionView *)collectionView OfKind:(NSString *)elementKind forIndexPath:(NSIndexPath *)indexPath {
- NSString *ID = [NSString stringWithFormat:@"%@%@", @"NYFailSpecialExerciseHeaderView",elementKind];
- [collectionView registerNib:[UINib nibWithNibName:@"NYFailSpecialExerciseHeaderView" bundle:nil] forSupplementaryViewOfKind:elementKind withReuseIdentifier:ID];
- NYFailSpecialExerciseHeaderView *reusableView = [collectionView dequeueReusableSupplementaryViewOfKind:elementKind withReuseIdentifier:ID forIndexPath:indexPath];
- if (!reusableView) reusableView = [self rq_viewFromXib];
- return reusableView;
- }
- - (void)bindViewModel:(NYFailSpecialExerciseGroupViewModel *)viewModel {
- self.viewModel = viewModel;
-
- }
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- @end
|