1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // NYTimeStartRuleCell.m
- // jiaPei
- //
- // Created by Ning.ge on 2023/6/9.
- // Copyright © 2023 JCZ. All rights reserved.
- //
- #import "NYTimeStartRuleCell.h"
- @interface NYTimeStartRuleCell ()
- @property (nonatomic, readwrite, strong) NYTimeStartRuleViewModel *viewModel;
- @end
- @implementation NYTimeStartRuleCell
- #pragma mark - PublicMethods
- + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath {
- static NSString *ID = @"NYTimeStartRuleCell";
- [collectionView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellWithReuseIdentifier:ID];
- NYTimeStartRuleCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath];
- if (!cell) cell = [self rq_viewFromXib];
- return cell;
- }
- - (void)bindViewModel:(NYTimeStartRuleViewModel *)viewModel {
- self.viewModel = viewModel;
- }
- #pragma mark - SystemMethods
- - (void)awakeFromNib {
- [super awakeFromNib];
- self.contentView.backgroundColor = UIColorHex(0x498EF5);
-
- }
- @end
|