引导UI修改
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user