This commit is contained in:
2025-12-03 20:14:14 +08:00
parent eca168957d
commit 9651ae7ad7
7 changed files with 80 additions and 1 deletions

View File

@@ -10,6 +10,8 @@
#import "KBMyKeyBoardVC.h"
#import "KBJfPay.h"
#import "KBVipPay.h"
#import "UIImageView+KBWebImage.h"
#import "KBUser.h"
@interface KBMyHeaderView ()
@property (nonatomic, strong) UILabel *titleLabel;
@@ -87,6 +89,18 @@
self.avatarView.layer.masksToBounds = YES;
}
- (void)configureWithUser:(KBUser *)user {
// Settings
NSString *name = user.nickName;
if (name.length == 0) {
name = KBLocalized(@"Settings");
}
self.nameLabel.text = name;
// 使
[self.avatarView kb_setAvatarURL:user.avatarUrl placeholder:KBPlaceholderImage];
}
+ (void)kb_applyGradientTo:(UIView *)view colors:(NSArray *)colors {
// setNeedsLayout
NSMutableArray<CALayer *> *remove = [NSMutableArray array];