PlaceTableViewCell.m 1015 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // PlaceTableViewCell.m
  3. // BuguLive
  4. //
  5. // Created by fanwe2014 on 16/10/19.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import "PlaceTableViewCell.h"
  9. #import "ListModel.h"
  10. @implementation PlaceTableViewCell
  11. - (void)awakeFromNib
  12. {
  13. [super awakeFromNib];
  14. self.addressButton.layer.borderWidth = 1;
  15. self.addressButton.layer.cornerRadius = 5;
  16. self.addressButton.layer.borderColor = kAppGrayColor3.CGColor;
  17. [self.addressButton setTitleColor:kAppGrayColor3 forState:UIControlStateNormal];
  18. self.nameLabel.textColor = kAppGrayColor1;
  19. self.placeLabel.textColor = kAppGrayColor1;
  20. }
  21. - (void)creatCellWithModel:(ListModel *)model andRow:(int)row
  22. {
  23. self.addressButton.tag = row;
  24. self.nameLabel.text = [NSString stringWithFormat:@"%@ %@",model.consignee,model.consignee_mobile];
  25. self.placeLabel.text = [NSString stringWithFormat:@"%@%@%@%@",model.consignee_district.province,model.consignee_district.city,model.consignee_district.area,model.consignee_address];
  26. }
  27. @end