52 lines
1.5 KiB
Objective-C
52 lines
1.5 KiB
Objective-C
//
|
|
// GIGaUserCityViewCell.m
|
|
// GIGA
|
|
//
|
|
// Created by lianxiang on 2018/9/14.
|
|
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
|
//
|
|
|
|
#import "GIGaUserCityViewCell.h"
|
|
|
|
@implementation GIGaUserCityViewCell
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
// Initialization code
|
|
}
|
|
|
|
-(void)loadCellData:(NSIndexPath*)indexPath user:(GiGaUser*)user{
|
|
if (indexPath.section == 2 && indexPath.row == 1) {
|
|
self.cityLabel.text = @"生日";
|
|
if (user.birthday && ![user.birthday isKindOfClass:[NSNull class]]) {
|
|
self.detalTitle.text = user.birthday;
|
|
}else{
|
|
self.detalTitle.text = @"选择生日";
|
|
}
|
|
|
|
}else if (indexPath.section == 2 && indexPath.row == 2){
|
|
self.cityLabel.text = @"城市";
|
|
if (user.cityName && ![user.cityName isKindOfClass:[NSNull class]]) {
|
|
self.detalTitle.text = user.cityName;
|
|
}else{
|
|
self.detalTitle.text = @"选择城市";
|
|
}
|
|
}else if (indexPath.section == 2 && indexPath.row == 3){
|
|
self.cityLabel.text = @"职业";
|
|
if (user.occupationCode && ![user.occupationCode isKindOfClass:[NSNull class]]) {
|
|
self.detalTitle.text = user.occupationCode;
|
|
}else{
|
|
self.detalTitle.text = @"选择职业";
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
|
[super setSelected:selected animated:animated];
|
|
|
|
// Configure the view for the selected state
|
|
}
|
|
|
|
@end
|