fix 首页
This commit is contained in:
@@ -8,12 +8,34 @@
|
||||
|
||||
//我的 - 个人中心cell
|
||||
#import "GiGaMineUserViewCell.h"
|
||||
#import "UIImageView+WebCache.h"
|
||||
|
||||
@implementation GiGaMineUserViewCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
self.vipLabe.layer.masksToBounds = YES;
|
||||
self.vipLabe.layer.cornerRadius = self.vipLabe.frame.size.height /2;
|
||||
self.vipLabe.layer.borderWidth = 1;
|
||||
self.vipLabe.layer.borderColor = [UIColor whiteColor].CGColor;
|
||||
|
||||
self.userAvator.layer.masksToBounds = YES;
|
||||
self.userAvator.layer.cornerRadius = self.userAvator.frame.size.height /2 ;
|
||||
|
||||
}
|
||||
|
||||
-(void)loadUserinfoWith:(GiGaUser *)user{
|
||||
|
||||
if (user.headImgUrl && ![user.nickName isKindOfClass:[NSNull class]]) {
|
||||
[self.userAvator sd_setImageWithURL:[NSURL URLWithString:user.headImgUrl]];
|
||||
}
|
||||
if (!user.nickName && ![user.nickName isKindOfClass:[NSNull class]]) {
|
||||
self.userName.text = user.nickName;
|
||||
}else{
|
||||
self.userName.text = @"GIGAUser666";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
|
||||
Reference in New Issue
Block a user