GiGaMaskTime/GIGA/Modules/Me/View/userInfoView/GIGaUserWeChatViewCell.m

44 lines
1.2 KiB
Objective-C

//
// GIGaUserWeChatViewCell.m
// GIGA
//
// Created by lianxiang on 2018/9/14.
// Copyright © 2018年 com.giga.ios. All rights reserved.
//
#import "GIGaUserWeChatViewCell.h"
@implementation GIGaUserWeChatViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)loadCellData:(NSIndexPath*)indexPath user:(GiGaUser*)user{
if (indexPath.section == 1 && indexPath.row == 1) {
//昵称
self.descTitle.text = @"昵称";
self.weiXinCount.placeholder = @"请输入用户昵称";
if (user.nickName && ![user.nickName isKindOfClass:[NSNull class]] && ![user.nickName isEqualToString:@""]) {
self.weiXinCount.text= user.nickName;
}
}else if (indexPath.section == 1 && indexPath.row == 2){
//微信
if (user.weixin && ![user.weixin isKindOfClass:[NSNull class]] && ![user.weixin isEqualToString:@""]) {
self.weiXinCount.text = user.weixin;
}
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end