RASettingAboutCell.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // RASettingAboutCell.m
  3. // Apex And Drivers
  4. //
  5. // Created by Jack on 2018/9/13.
  6. // Copyright © 2018年 USAI. All rights reserved.
  7. //
  8. #import "RASettingAboutCell.h"
  9. #import "RASettingAboutModel.h"
  10. @interface RASettingAboutCell ()
  11. @property (nonatomic,strong) IBOutlet UIImageView *appIconView;
  12. @property (nonatomic,strong) IBOutlet UIImageView *redantLogoView;
  13. @property (nonatomic,strong) IBOutlet UILabel *appNameLabel;
  14. @property (nonatomic,strong) IBOutlet UILabel *appVerLabel;
  15. @property (nonatomic,strong) IBOutlet UILabel *copyrightLabel;
  16. @property (nonatomic,strong) IBOutlet UITextView *supportLabel;
  17. @end
  18. @implementation RASettingAboutCell
  19. - (void)awakeFromNib {
  20. [super awakeFromNib];
  21. // Initialization code
  22. self.appIconView.layer.cornerRadius = 10.0f;
  23. self.appIconView.layer.masksToBounds = YES;
  24. self.model = nil;
  25. }
  26. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  27. [super setSelected:selected animated:animated];
  28. // Configure the view for the selected state
  29. }
  30. - (void)refreshUI {
  31. RASettingAboutModel *aboutModel = (RASettingAboutModel *)self.model;
  32. self.appIconView.image = aboutModel.appIcon;
  33. self.redantLogoView.image = aboutModel.redantLogo;
  34. self.appNameLabel.text = aboutModel.appName;
  35. self.appVerLabel.text = aboutModel.appVer;
  36. // self.copyrightLabel.text = aboutModel.appCopyright;
  37. self.supportLabel.text = aboutModel.appSupport;
  38. }
  39. @end