123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // MinRecordeCell.m
- // LNManager
- //
- // Created by EchoShacolee on 2017/4/14.
- // Copyright © 2017年 lee. All rights reserved.
- //
- #import "MinRecordeCell.h"
- @implementation MinRecordeCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- -(void)upDataWithDic:(NSDictionary *)dic{
-
- _speed.text = [NSString stringWithFormat:@"最大速度: %@km/h",dic[@"MAXSPEED"]];
- _time.text = [NSString stringWithFormat:@"记录产生时间: %@",dic[@"RECORDTIME"]];
- _phoneNum.text = [NSString stringWithFormat:@"手机号: %@",dic[@"SIM"]];
- _mile.text = [NSString stringWithFormat:@"训练里程: %@km",dic[@"MILEAGE"]];
-
- NSInteger k = [[NSString stringWithFormat:@"%@",dic[@"RECORDSTATUS"]] integerValue];
- if (k == 0) {
- _status.text = @"记录状态: 正常记录";
- }else{
- _status.text = @"记录状态: 异常记录";
- }
- }
- @end
|