1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// PersonInformationTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 16/5/4.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "PersonInformationTableViewCell.h"
@implementation PersonInformationTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
MyclientEntityModel *model = [Customermanager manager].model;
[self.customerHeader sd_setImageWithURL:[NSURL URLWithString:model.picture] placeholderImage:REPLACEIMAGE];
self.customerName.text = [Customermanager manager].model.name;
self.companyName.text = [Customermanager manager].model.company;
self.companyLocation.text = [Customermanager manager].model.address;
self.customerPhoneNumber.text = [Customermanager manager].model.mobile;
}
- (void)setModel:(TOConsumerEntity *)model
{
_model = model;
[self.customerHeader sd_setImageWithURL:[NSURL URLWithString:_model.picture] placeholderImage:ReplaceImage];
self.customerName.text = _model.name;
self.companyName.text = _model.company;
self.customerAddress.text = _model.address;
self.customerPhoneNumber.text = _model.mobile;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end