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