2
This commit is contained in:
@@ -6,10 +6,12 @@
|
||||
// 个人资料
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "KBUser.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KBPersonInfoVC : BaseViewController
|
||||
@property (nonatomic, strong) KBUser *userModel;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user