省钱达人

DRAccountDetailCell.m 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // DRAccountDetailCell.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/6/8.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "DRAccountDetailCell.h"
  9. @interface DRAccountDetailCell ()
  10. @property (nonatomic, strong) UIImageView *icon;
  11. @property (nonatomic, strong) UILabel *title;
  12. @property (nonatomic, strong) UILabel *dateLabel;
  13. @property (nonatomic, strong) UILabel *orderPrice;
  14. @end
  15. @implementation DRAccountDetailCell
  16. - (void)awakeFromNib {
  17. [super awakeFromNib];
  18. // Initialization code
  19. }
  20. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  21. [super setSelected:selected animated:animated];
  22. // Configure the view for the selected state
  23. }
  24. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  25. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  26. if (self) {
  27. }
  28. return self;
  29. }
  30. - (UIImageView *)icon {
  31. if (!_icon) {
  32. _icon = [[UIImageView alloc] init];
  33. }
  34. return _icon;
  35. }
  36. - (UILabel *)title {
  37. if (!_title) {
  38. _title = [[UILabel alloc] init];
  39. _title.textColor = [UIColor YHColorWithHex:0x666666];
  40. _title.font = [UIFont systemFontOfSize:15];
  41. }
  42. return _title;
  43. }
  44. - (UILabel *)dateLabel {
  45. if (!_dateLabel) {
  46. _dateLabel = [[UILabel alloc] init];
  47. _dateLabel.textColor = [UIColor YHColorWithHex:0x999999];
  48. _dateLabel.font = [UIFont systemFontOfSize:12];
  49. }
  50. return _dateLabel;
  51. }
  52. @end