This commit is contained in:
2025-12-03 20:31:33 +08:00
parent 9651ae7ad7
commit 819d74cc8d
6 changed files with 19 additions and 4 deletions

View File

@@ -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 {