2
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
@property (nonatomic, strong) UIImageView *cardLeft;
|
||||
@property (nonatomic, strong) UIImageView *cardRight;
|
||||
@property (nonatomic, strong) UIImageView *avatarEditIcon; // 头像右下角的编辑图标
|
||||
@property (nonatomic, strong) KBUser *userModel;
|
||||
|
||||
@end
|
||||
|
||||
@implementation KBMyHeaderView
|
||||
@@ -91,6 +93,7 @@
|
||||
|
||||
- (void)configureWithUser:(KBUser *)user {
|
||||
// 名称:优先昵称,兜底展示本地化的“Settings”或固定提示
|
||||
self.userModel = user;
|
||||
NSString *name = user.nickName;
|
||||
if (name.length == 0) {
|
||||
name = KBLocalized(@"Settings");
|
||||
@@ -224,6 +227,7 @@
|
||||
}
|
||||
- (void)onAvatarTap {
|
||||
KBPersonInfoVC *vc = [[KBPersonInfoVC alloc] init];
|
||||
vc.userModel = self.userModel;
|
||||
[KB_CURRENT_NAV pushViewController:vc animated:true];
|
||||
}
|
||||
- (void)onLeftCardTap {
|
||||
|
||||
Reference in New Issue
Block a user