修复了消息页的UI问题
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -29,7 +29,9 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
|
|||||||
///好友容器
|
///好友容器
|
||||||
@property (nonatomic, strong) UIView *friendContentView;
|
@property (nonatomic, strong) UIView *friendContentView;
|
||||||
///好友派对view
|
///好友派对view
|
||||||
@property (nonatomic, strong) UIImageView *partyView;
|
@property (nonatomic, strong) UILabel *partyView;
|
||||||
|
///显示烟花
|
||||||
|
@property (nonatomic,strong) UIImageView *fireImageView;
|
||||||
///好友列表
|
///好友列表
|
||||||
@property (nonatomic, strong) UICollectionView *collectionView;
|
@property (nonatomic, strong) UICollectionView *collectionView;
|
||||||
|
|
||||||
@@ -86,6 +88,7 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
|
|||||||
}
|
}
|
||||||
[self.friendContentView addSubview:self.collectionView];
|
[self.friendContentView addSubview:self.collectionView];
|
||||||
[self.friendContentView addSubview:self.partyView];
|
[self.friendContentView addSubview:self.partyView];
|
||||||
|
[self.friendContentView addSubview:self.fireImageView];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,8 +99,14 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
|
|||||||
[self.partyView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.partyView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.mas_equalTo(21);
|
make.left.mas_equalTo(21);
|
||||||
make.top.mas_equalTo(12);
|
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) {
|
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.mas_equalTo(16);
|
make.left.mas_equalTo(16);
|
||||||
make.right.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 registerClass:[XPSessionListHeadFriendCell class] forCellWithReuseIdentifier:NSStringFromClass([XPSessionListHeadFriendCell class])];
|
||||||
_collectionView.delegate = self;
|
_collectionView.delegate = self;
|
||||||
_collectionView.dataSource = self;
|
_collectionView.dataSource = self;
|
||||||
_collectionView.backgroundColor = UIColorRGBAlpha(0x5FCCE4, 0.12);
|
_collectionView.backgroundColor = [UIColor clearColor];
|
||||||
_collectionView.layer.cornerRadius = 8;
|
_collectionView.layer.cornerRadius = 8;
|
||||||
_collectionView.layer.masksToBounds = YES;
|
_collectionView.layer.masksToBounds = YES;
|
||||||
_collectionView.showsHorizontalScrollIndicator = NO;
|
_collectionView.showsHorizontalScrollIndicator = NO;
|
||||||
@@ -259,12 +268,22 @@ NSString * const kMengXinShowReadDotKey = @"kMengXinShowReadDotKey";
|
|||||||
return _collectionView;
|
return _collectionView;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UIImageView *)partyView {
|
- (UILabel *)partyView {
|
||||||
if (!_partyView) {
|
if (!_partyView) {
|
||||||
_partyView = [[UIImageView alloc] init];
|
_partyView = [[UILabel alloc] init];
|
||||||
_partyView.image = [UIImage imageNamed:@"session_list_head_friend"];
|
_partyView.text = @"好友派对中";
|
||||||
|
_partyView.font = [UIFont systemFontOfSize:12];
|
||||||
|
_partyView.textColor = [ThemeColor mainTextColor];
|
||||||
}
|
}
|
||||||
return _partyView;
|
return _partyView;
|
||||||
}
|
}
|
||||||
|
- (UIImageView *)fireImageView {
|
||||||
|
if (!_fireImageView) {
|
||||||
|
_fireImageView = [[UIImageView alloc] init];
|
||||||
|
_fireImageView.userInteractionEnabled = YES;
|
||||||
|
_fireImageView.image = [UIImage imageNamed:@"session_list_head_friend"];
|
||||||
|
}
|
||||||
|
return _fireImageView;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|