StudentListCell.m 762 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // StudentListCell.m
  3. // LNManager
  4. //
  5. // Created by apple on 2017/5/5.
  6. // Copyright © 2017年 lee. All rights reserved.
  7. //
  8. #import "StudentListCell.h"
  9. @implementation StudentListCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. -(void)setDataDic:(NSDictionary *)dataDic {
  15. _dataDic = dataDic;
  16. //赋值
  17. _nameLabel.text = dataDic[@"TSO_NAME"];
  18. _sexLabel.text = [dataDic[@"TSO_SEX"] integerValue] == 1 ? @"男":@"女";
  19. _carTypeLabel.text = dataDic[@"TSO_TRAINTYPE"];
  20. _dateLabel.text = dataDic[@"TSO_APPLYDATE"];
  21. }
  22. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  23. [super setSelected:selected animated:animated];
  24. // Configure the view for the selected state
  25. }
  26. @end