fix 个人信息
This commit is contained in:
@@ -15,6 +15,33 @@
|
||||
// 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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user