商店包版本修改 此commit置顶 2.6.0
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
@property(nonatomic,strong) UIButton *clickBtn;
|
||||
@property(nonatomic,strong) UICollectionView *collectionView;
|
||||
@property(nonatomic,strong) UIImageView *bgImageView;
|
||||
@property (nonatomic, strong) UIVisualEffectView *effectView;
|
||||
@end
|
||||
@implementation PIRoomActivityChoosePlayView
|
||||
|
||||
@@ -27,6 +28,7 @@
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
[self addSubview:self.clickBtn];
|
||||
[self addSubview:self.bgImageView];
|
||||
[self.bgImageView addSubview:self.effectView];
|
||||
[self.bgImageView addSubview:self.collectionView];
|
||||
|
||||
}
|
||||
@@ -41,6 +43,9 @@
|
||||
make.top.bottom.equalTo(self);
|
||||
make.width.mas_equalTo(180);
|
||||
}];
|
||||
[self.effectView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.bgImageView);
|
||||
}];
|
||||
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.bgImageView);
|
||||
}];
|
||||
@@ -107,9 +112,18 @@
|
||||
_bgImageView.layer.borderColor = [UIColor colorWithWhite:1 alpha:0.8].CGColor;
|
||||
_bgImageView.layer.borderWidth = 1;
|
||||
_bgImageView.userInteractionEnabled = YES;
|
||||
UIImage *image = [UIImage imageWithColor:[UIColor colorWithWhite:0 alpha:0.5]];
|
||||
_bgImageView.image = [UIImage setBlurImage:image value:1];
|
||||
|
||||
}
|
||||
return _bgImageView;
|
||||
}
|
||||
- (UIVisualEffectView *)effectView {
|
||||
if (!_effectView) {
|
||||
|
||||
UIBlurEffect *beffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
|
||||
_effectView = [[UIVisualEffectView alloc] initWithEffect:beffect];
|
||||
_effectView.alpha = 0.8;
|
||||
|
||||
}
|
||||
return _effectView;
|
||||
}
|
||||
@end
|
||||
|
@@ -10,6 +10,7 @@
|
||||
@property(nonatomic,strong) UIButton *clickBtn;
|
||||
@property(nonatomic,strong) UIImageView *bgImageView;
|
||||
@property(nonatomic,strong) NetImageView *playIconView;
|
||||
@property (nonatomic, strong) UIVisualEffectView *effectView;
|
||||
@end
|
||||
@implementation PIRoomActivityClickView
|
||||
|
||||
@@ -24,6 +25,7 @@
|
||||
-(void)installUI{
|
||||
[self addSubview:self.clickBtn];
|
||||
[self addSubview:self.bgImageView];
|
||||
[self.bgImageView addSubview:self.effectView];
|
||||
[self.bgImageView addSubview:self.playIconView];
|
||||
}
|
||||
-(void)installConstraints{
|
||||
@@ -36,6 +38,9 @@
|
||||
make.centerY.equalTo(self);
|
||||
make.leading.mas_equalTo(15);
|
||||
}];
|
||||
[self.effectView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.bgImageView);
|
||||
}];
|
||||
[self.playIconView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.height.mas_equalTo(58);
|
||||
make.center.equalTo(self.bgImageView);
|
||||
@@ -76,11 +81,20 @@
|
||||
_bgImageView.layer.borderColor = [UIColor colorWithWhite:1 alpha:0.8].CGColor;
|
||||
_bgImageView.layer.borderWidth = 1;
|
||||
_bgImageView.userInteractionEnabled = YES;
|
||||
UIImage *image = [UIImage imageWithColor:[UIColor colorWithWhite:0 alpha:0.6]];
|
||||
_bgImageView.image = [UIImage setBlurImage:image value:1];
|
||||
|
||||
}
|
||||
return _bgImageView;
|
||||
}
|
||||
- (UIVisualEffectView *)effectView {
|
||||
if (!_effectView) {
|
||||
|
||||
UIBlurEffect *beffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
|
||||
_effectView = [[UIVisualEffectView alloc] initWithEffect:beffect];
|
||||
_effectView.alpha = 0.8;
|
||||
|
||||
}
|
||||
return _effectView;
|
||||
}
|
||||
- (NetImageView *)playIconView{
|
||||
if(!_playIconView){
|
||||
_playIconView = [NetImageView new];
|
||||
|
Reference in New Issue
Block a user