引导UI修改

This commit is contained in:
2025-12-15 17:56:06 +08:00
parent a399af53b5
commit 9cafb0f70e
5 changed files with 73 additions and 29 deletions

View File

@@ -6,7 +6,7 @@
#import "KBGuideKFCell.h"
@interface KBGuideKFCell ()
@property (nonatomic, strong) UIView *avatarView; //
@property (nonatomic, strong) UIImageView *avatarImageView; //
@property (nonatomic, strong) UIView *bubbleView; //
@property (nonatomic, strong) UILabel *contentLabel; //
@end
@@ -16,8 +16,8 @@
- (void)setupUI {
self.contentView.backgroundColor = [UIColor colorWithWhite:0.96 alpha:1.0];
[self.contentView addSubview:self.avatarView];
[self.avatarView mas_makeConstraints:^(MASConstraintMaker *make) {
[self.contentView addSubview:self.avatarImageView];
[self.avatarImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.contentView).offset(16);
make.top.equalTo(self.contentView).offset(10);
make.width.height.mas_equalTo(36);
@@ -25,7 +25,7 @@
[self.contentView addSubview:self.bubbleView];
[self.bubbleView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.avatarView.mas_right).offset(8);
make.left.equalTo(self.avatarImageView.mas_right).offset(8);
make.top.equalTo(self.contentView).offset(8);
make.right.lessThanOrEqualTo(self.contentView).offset(-80);
make.bottom.equalTo(self.contentView).offset(-8);
@@ -43,14 +43,14 @@
#pragma mark - Lazy
- (UIView *)avatarView {
if (!_avatarView) {
_avatarView = [UIView new];
_avatarView.backgroundColor = [UIColor colorWithRed:0.23 green:0.47 blue:0.96 alpha:1.0];
_avatarView.layer.cornerRadius = 18;
_avatarView.layer.masksToBounds = YES;
- (UIImageView *)avatarImageView {
if (!_avatarImageView) {
_avatarImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"App_icon"]];
_avatarImageView.contentMode = UIViewContentModeScaleAspectFill;
_avatarImageView.layer.cornerRadius = 18;
_avatarImageView.layer.masksToBounds = YES;
}
return _avatarView;
return _avatarImageView;
}
- (UIView *)bubbleView {
@@ -74,4 +74,3 @@
}
@end