MinRecordeCell.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // MinRecordeCell.m
  3. // LNManager
  4. //
  5. // Created by EchoShacolee on 2017/4/14.
  6. // Copyright © 2017年 lee. All rights reserved.
  7. //
  8. #import "MinRecordeCell.h"
  9. @implementation MinRecordeCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. -(void)upDataWithDic:(NSDictionary *)dic{
  19. _speed.text = [NSString stringWithFormat:@"最大速度: %@km/h",dic[@"MAXSPEED"]];
  20. _time.text = [NSString stringWithFormat:@"记录产生时间: %@",dic[@"RECORDTIME"]];
  21. _phoneNum.text = [NSString stringWithFormat:@"手机号: %@",dic[@"SIM"]];
  22. _mile.text = [NSString stringWithFormat:@"训练里程: %@km",dic[@"MILEAGE"]];
  23. NSInteger k = [[NSString stringWithFormat:@"%@",dic[@"RECORDSTATUS"]] integerValue];
  24. if (k == 0) {
  25. _status.text = @"记录状态: 正常记录";
  26. }else{
  27. _status.text = @"记录状态: 异常记录";
  28. }
  29. }
  30. @end