修复了消息页的UI问题

This commit is contained in:
fengshuo
2022-12-26 15:52:07 +08:00
parent 35d921da8c
commit 4482740d97
11 changed files with 25 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -29,7 +29,9 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
///
@property (nonatomic, strong) UIView *friendContentView;
///view
@property (nonatomic, strong) UIImageView *partyView;
@property (nonatomic, strong) UILabel *partyView;
///
@property (nonatomic,strong) UIImageView *fireImageView;
///
@property (nonatomic, strong) UICollectionView *collectionView;
@@ -86,6 +88,7 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
}
[self.friendContentView addSubview:self.collectionView];
[self.friendContentView addSubview:self.partyView];
[self.friendContentView addSubview:self.fireImageView];
}
@@ -96,8 +99,14 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
[self.partyView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(21);
make.top.mas_equalTo(12);
make.size.mas_equalTo(CGSizeMake(104, 29));
}];
[self.fireImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(15, 17));
make.centerY.mas_equalTo(self.partyView);
make.left.mas_equalTo(self.partyView.mas_right).offset(5);
}];
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(16);
make.right.mas_equalTo(-16);
@@ -251,7 +260,7 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
[_collectionView registerClass:[XPSessionListHeadFriendCell class] forCellWithReuseIdentifier:NSStringFromClass([XPSessionListHeadFriendCell class])];
_collectionView.delegate = self;
_collectionView.dataSource = self;
_collectionView.backgroundColor = UIColorRGBAlpha(0x5FCCE4, 0.12);
_collectionView.backgroundColor = [UIColor clearColor];
_collectionView.layer.cornerRadius = 8;
_collectionView.layer.masksToBounds = YES;
_collectionView.showsHorizontalScrollIndicator = NO;
@@ -259,12 +268,22 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
return _collectionView;
}
- (UIImageView *)partyView {
- (UILabel *)partyView {
if (!_partyView) {
_partyView = [[UIImageView alloc] init];
_partyView.image = [UIImage imageNamed:@"session_list_head_friend"];
_partyView = [[UILabel alloc] init];
_partyView.text = @"好友派对中";
_partyView.font = [UIFont systemFontOfSize:12];
_partyView.textColor = [ThemeColor mainTextColor];
}
return _partyView;
}
- (UIImageView *)fireImageView {
if (!_fireImageView) {
_fireImageView = [[UIImageView alloc] init];
_fireImageView.userInteractionEnabled = YES;
_fireImageView.image = [UIImage imageNamed:@"session_list_head_friend"];
}
return _fireImageView;
}
@end