1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // CYGroupSendHelperCell.m
- // shiku_im
- //
- // Created by JayLuo on 2019/12/13.
- // Copyright © 2019 Reese. All rights reserved.
- //
- #import "CYGroupSendHelperCell.h"
- @interface CYGroupSendHelperCell()
- @property (weak, nonatomic) IBOutlet UILabel *tagLabel;
- @property (weak, nonatomic) IBOutlet UILabel *groupLabel;
- @property (weak, nonatomic) IBOutlet UILabel *contentLabel;
- @property (weak, nonatomic) IBOutlet UIView *containerView;
- @end
- @implementation CYGroupSendHelperCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- _containerView.layer.cornerRadius = 10;
- _containerView.layer.masksToBounds = YES;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- - (void)setResendClickCallback:(void (^)(JXLabelObject *model))resendClickCallback {
- _resendClickCallback = resendClickCallback;
- }
- - (IBAction)resendClick:(UIButton *)sender {
-
- if (_resendClickCallback) {
- _resendClickCallback(_model);
- }
- }
- - (void)setModel:(JXLabelObject *)model {
- _model = model;
-
- if ([model.text1 isEqualToString:@""]) {
- _tagLabel.text = @"标签: 未选择标签";
- } else {
- _tagLabel.text = model.text1;
- }
-
- if ([model.text2 isEqualToString:@""]) {
- _groupLabel.text = @"群组: 未选择群组";
- } else {
- _groupLabel.text = model.text2;
- }
- _contentLabel.text = [NSString stringWithFormat:@"%@", model.message];;
- }
- @end
|