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

@@ -6,10 +6,12 @@
// 个人资料
#import <UIKit/UIKit.h>
#import "KBUser.h"
NS_ASSUME_NONNULL_BEGIN
@interface KBPersonInfoVC : BaseViewController
@property (nonatomic, strong) KBUser *userModel;
@end

View File

@@ -51,9 +51,9 @@
//
self.items = @[
@{ @"title": KBLocalized(@"Nickname"), @"value": @"Nickname", @"arrow": @YES, @"copy": @NO },
@{ @"title": KBLocalized(@"Nickname"), @"value": @"", @"arrow": @YES, @"copy": @NO },
@{ @"title": KBLocalized(@"Gender"), @"value": @"Choose", @"arrow": @YES, @"copy": @NO },
@{ @"title": KBLocalized(@"User ID"), @"value": @"8888888", @"arrow": @NO, @"copy": @YES },
@{ @"title": KBLocalized(@"User ID"), @"value": @"", @"arrow": @NO, @"copy": @YES },
];
[self.view addSubview:self.tableView];
@@ -80,6 +80,12 @@
self.tableView.contentInset = inset;
}
- (void)setUserModel:(KBUser *)userModel{
_userModel = userModel;
[self.avatarView kb_setAvatarURL:userModel.avatarUrl placeholder:KBPlaceholderImage];
self.modifyLabel.text = userModel.nickName;
}
#pragma mark - UITableView
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; }