You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.8 KiB

//
// DelectMessageTableViewCell.m
// watch
//
// Created by WeiChaoZheng on 2018/1/27.
// Copyright © 2018xTT. All rights reserved.
//
#import "MessageTableViewCell.h"
@implementation MessageTableViewCell
-(void)setIsDelect:(BOOL)isDelect{
_isDelect = isDelect;
if(_isDelect){
self.selectImageWidth.constant = 25;
}else{
self.selectImageWidth.constant = 0;
}
}
- (void)awakeFromNib {
[super awakeFromNib];
self.aTitleLabel.textColor = mainColor;
self.selectionStyle = 0;
self.agreeBtn.layer.cornerRadius = 3;
self.agreeBtn.layer.masksToBounds = YES;
self.reFusalBtn.layer.cornerRadius = 3;
self.reFusalBtn.layer.masksToBounds = YES;
//默认
_agreeBtnHeightNSCL.constant = 0;
_reFusalBtnHeightNSCL.constant = 0;
[self.agreeBtn setHidden:YES];
[self.reFusalBtn setHidden:YES];
[self.agreeBtn setBackgroundColor:mainColor];
[self.reFusalBtn setBackgroundColor:mainColor];
}
-(void)setIsApplicationRrecord:(BOOL)isApplicationRrecord{
_isApplicationRrecord = isApplicationRrecord;
self.isDelect = NO;
if (_isApplicationRrecord) {
_agreeBtnHeightNSCL.constant = 25;
_reFusalBtnHeightNSCL.constant = 25;
[self.agreeBtn setHidden:NO];
[self.reFusalBtn setHidden:NO];
}else{
_agreeBtnHeightNSCL.constant = 0;
_reFusalBtnHeightNSCL.constant = 0;
[self.agreeBtn setHidden:YES];
[self.reFusalBtn setHidden:YES];
}
}
- (IBAction)noAction:(id)sender {
if(self.agreeOrNOBlock){
self.agreeOrNOBlock(NO);
}
}
- (IBAction)argeeAction:(id)sender {
if(self.agreeOrNOBlock){
self.agreeOrNOBlock(YES);
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
}
@end