create
This commit is contained in:
34
ShenQi/WithdrawRecordTableViewCell.m
Normal file
34
ShenQi/WithdrawRecordTableViewCell.m
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// WithdrawRecordTableViewCell.m
|
||||
// ShenQi
|
||||
//
|
||||
// Created by Yao on 2024/11/9.
|
||||
//
|
||||
|
||||
#import "WithdrawRecordTableViewCell.h"
|
||||
|
||||
@implementation WithdrawRecordTableViewCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
[self setSelectionStyle:(UITableViewCellSelectionStyleNone)];
|
||||
}
|
||||
|
||||
-(void)setList:(WithdrawRecordList *)list
|
||||
{
|
||||
_list = list;
|
||||
|
||||
self.nameLabel.text = self.list.name;
|
||||
self.bankLabel.text = [NSString stringWithFormat:@"(%@)",self.list.bankName];
|
||||
self.amountLabel.text = [NSString stringWithFormat:@"%@:%.1f",NSLocalizedString(@"Amount", nil),self.list.amount];
|
||||
self.balanceLabel.text = [NSString stringWithFormat:@"%@:%.1f",NSLocalizedString(@"Balance", nil),self.list.balance];
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user