个人信息修改
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#import "UINavigationBar+Custom.h"
|
||||
#import "GiGaBaseAPiRequest.h"
|
||||
#import "GiGaUserManager.h"
|
||||
#import "UIImageView+WebCache.h"
|
||||
|
||||
@interface GiGaMeViewController ()
|
||||
@property (nonatomic,strong) GiGaUser *user;
|
||||
@@ -39,6 +40,21 @@
|
||||
self.tableView.bounces = NO;
|
||||
self.tableView.frame = CGRectMake(0, 1, KMainW, self.view.bounds.size.height - SAFE_NAV_HEIGHT);
|
||||
[self loadUserInfo];
|
||||
NC_ADD_TARGET_NAME_OBJECT(self, @selector(userAvatorUpDate), kUserAvatorUpdateNoti, nil) ;
|
||||
}
|
||||
|
||||
-(void)dealloc{
|
||||
NC_REMOVE_NAME(self, kUserAvatorUpdateNoti, nil);
|
||||
}
|
||||
|
||||
-(void)userAvatorUpDate{
|
||||
|
||||
GiGaUser *user = [[GiGaUserManager shareUser] getCurrentUser];
|
||||
if (user.headImgUrl && ![user.headImgUrl isKindOfClass:[NSNull class]] ) {
|
||||
GiGaMineUserViewCell *cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
|
||||
NSURL *url = [NSURL URLWithString:user.headImgUrl];
|
||||
[cell.userAvator sd_setImageWithURL:url];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user