引导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

@@ -7,8 +7,8 @@
@interface KBGuideTopCell ()
//
@property (nonatomic, strong) UIView *avatarView;
// 使 App_icon
@property (nonatomic, strong) UIImageView *avatarImageView;
//
@property (nonatomic, strong) UIView *cardView;
// /
@@ -27,8 +27,8 @@
self.contentView.backgroundColor = [UIColor clearColor];
//
[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(12);
make.width.height.mas_equalTo(36);
@@ -37,7 +37,7 @@
//
[self.contentView addSubview:self.cardView];
[self.cardView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.avatarView.mas_right).offset(8);
make.left.equalTo(self.avatarImageView.mas_right).offset(8);
make.right.lessThanOrEqualTo(self.contentView).offset(-32);
make.top.equalTo(self.contentView).offset(8);
make.bottom.equalTo(self.contentView).offset(-8);
@@ -77,14 +77,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 *)cardView {