EnterAdrssCell.m 945 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // EnterAdrssCell.m
  3. // O2O
  4. //
  5. // Created by fanwe2014 on 15/7/28.
  6. // Copyright (c) 2015年 fanwe. All rights reserved.
  7. //
  8. #import "EnterAdrssCell.h"
  9. @implementation EnterAdrssCell
  10. - (void)awakeFromNib
  11. {
  12. // Initialization code
  13. [super awakeFromNib];
  14. self.adressName.textColor=kAppGrayColor2;
  15. self.descriptionText.textColor=kAppGrayColor1;
  16. }
  17. + (instancetype)cellWithTableView:(UITableView *)tableView
  18. {
  19. static NSString *ID = @"EnterAdrssCell";
  20. EnterAdrssCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
  21. if (!cell)
  22. {
  23. cell = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];
  24. }
  25. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  26. return cell;
  27. }
  28. - (void)setCellContent:(NSString *)adressName description:(NSString *)description{
  29. self.adressName.text = adressName;
  30. self.descriptionText.text = description;
  31. }
  32. @end