This commit is contained in:
2025-12-03 19:38:55 +08:00
parent 716f91bdd0
commit 43e8b85656
7 changed files with 49 additions and 56 deletions

View File

@@ -79,19 +79,7 @@
self.titleLabel.text = character.characterName ?: @"";
self.subLabel.text = character.download ?: @"";
// +
UIImage *placeholder = nil;
if (!placeholder) {
// 使
CGFloat side = 56.0;
UIGraphicsBeginImageContextWithOptions(CGSizeMake(side, side), NO, 0);
CGContextRef ctx = UIGraphicsGetCurrentContext();
[[UIColor colorWithWhite:0.9 alpha:1.0] setFill];
CGContextFillEllipseInRect(ctx, CGRectMake(0, 0, side, side));
placeholder = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
}
[self.avatarView kb_setAvatarURL:character.avatarUrl placeholder:placeholder];
[self.avatarView kb_setAvatarURL:character.avatarUrl placeholder:KBPlaceholderImage];
//
BOOL joined = character.added;