This commit is contained in:
2025-12-03 13:31:02 +08:00
parent 27aa723e7d
commit b87998549c
11 changed files with 104 additions and 12 deletions

View File

@@ -17,7 +17,7 @@
#import "LSTPopView.h"
#import "KBChangeNicknamePopView.h"
#import "KBGenderPickerPopView.h"
#import "KBMyVM.h"
@interface KBPersonInfoVC () <UITableViewDelegate, UITableViewDataSource, PHPickerViewControllerDelegate, UINavigationControllerDelegate, UIImagePickerControllerDelegate>
//
@@ -37,6 +37,8 @@
// JPEG
@property (nonatomic, strong) NSData *avatarJPEGData;
@property (nonatomic, strong) KBMyVM *myVM;
@end
@implementation KBPersonInfoVC
@@ -185,7 +187,7 @@
- (void)onTapAvatarEdit { [self presentImagePicker]; }
- (void)onTapLogout {
[[KBUserSessionManager shared] logout];
[self.myVM logout];
}
#pragma mark - Lazy UI
@@ -366,4 +368,11 @@
return result;
}
- (KBMyVM *)myVM{
if (!_myVM) {
_myVM = [[KBMyVM alloc] init];
}
return _myVM;
}
@end