RASettingOptionCell.m 913 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // RASettingOptionCell.m
  3. // Apex And Drivers
  4. //
  5. // Created by Jack on 2018/9/12.
  6. // Copyright © 2018年 USAI. All rights reserved.
  7. //
  8. #import "RASettingOptionCell.h"
  9. #import "RASettingOptionModel.h"
  10. @interface RASettingOptionCell ()
  11. @property (nonatomic,strong) IBOutlet UILabel *titleLabel;
  12. @property (nonatomic,strong) IBOutlet UILabel *optionLabel;
  13. @end
  14. @implementation RASettingOptionCell
  15. - (void)awakeFromNib {
  16. [super awakeFromNib];
  17. // Initialization code
  18. }
  19. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  20. [super setSelected:selected animated:animated];
  21. // Configure the view for the selected state
  22. }
  23. - (void)refreshUI {
  24. RASettingOptionModel *model = (RASettingOptionModel *)self.model;
  25. NSString *title = model.title;
  26. NSString *option = model.option.title;
  27. self.titleLabel.text = title;
  28. self.optionLabel.text = option;
  29. }
  30. @end