fix 个人信息
This commit is contained in:
@@ -7,12 +7,22 @@
|
||||
//
|
||||
|
||||
#import "GIGaUserInfoAvatorCell.h"
|
||||
#import "UIImageView+WebCache.h"
|
||||
|
||||
@implementation GIGaUserInfoAvatorCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
self.userAvator.layer.masksToBounds = YES;
|
||||
self.userAvator.layer.cornerRadius = self.userAvator.frame.size.height /2 ;
|
||||
|
||||
}
|
||||
- (void)loadCellData:(NSIndexPath *)indexPath user:(GiGaUser *)user{
|
||||
if (user.headImgUrl && ![user.headImgUrl isKindOfClass:[NSNull class]]) {
|
||||
[self.userAvator sd_setImageWithURL:[NSURL URLWithString:user.headImgUrl]];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
|
||||
Reference in New Issue
Block a user