公告弹框模糊修改
This commit is contained in:
@@ -1346,6 +1346,7 @@
|
|||||||
[self.delegate.getCurrentNav pushViewController:editTopicVC animated:YES];
|
[self.delegate.getCurrentNav pushViewController:editTopicVC animated:YES];
|
||||||
} else {
|
} else {
|
||||||
TTPopupService * config = [[TTPopupService alloc] init];
|
TTPopupService * config = [[TTPopupService alloc] init];
|
||||||
|
config.maskBackgroundAlpha = 0;
|
||||||
XPRoomTopicAlertView * alertView = [[XPRoomTopicAlertView alloc] init];
|
XPRoomTopicAlertView * alertView = [[XPRoomTopicAlertView alloc] init];
|
||||||
alertView.title = roomInfo.roomDesc;
|
alertView.title = roomInfo.roomDesc;
|
||||||
alertView.message = roomInfo.introduction;
|
alertView.message = roomInfo.introduction;
|
||||||
|
@@ -210,6 +210,7 @@
|
|||||||
[attribute yy_setTextHighlightRange:NSMakeRange(0, attribute.length) color:nil backgroundColor:nil tapAction:^(UIView * _Nonnull containerView, NSAttributedString * _Nonnull text, NSRange range, CGRect rect) {
|
[attribute yy_setTextHighlightRange:NSMakeRange(0, attribute.length) color:nil backgroundColor:nil tapAction:^(UIView * _Nonnull containerView, NSAttributedString * _Nonnull text, NSRange range, CGRect rect) {
|
||||||
RoomInfoModel * roomInfo = self.hostDelegate.getRoomInfo;
|
RoomInfoModel * roomInfo = self.hostDelegate.getRoomInfo;
|
||||||
TTPopupService * config = [[TTPopupService alloc] init];
|
TTPopupService * config = [[TTPopupService alloc] init];
|
||||||
|
config.maskBackgroundAlpha = 0;
|
||||||
XPRoomTopicAlertView * alertView = [[XPRoomTopicAlertView alloc] init];
|
XPRoomTopicAlertView * alertView = [[XPRoomTopicAlertView alloc] init];
|
||||||
alertView.title = roomInfo.roomDesc;
|
alertView.title = roomInfo.roomDesc;
|
||||||
alertView.message = roomInfo.introduction;
|
alertView.message = roomInfo.introduction;
|
||||||
|
@@ -22,8 +22,8 @@
|
|||||||
@property (nonatomic,strong) UITextView *textView;
|
@property (nonatomic,strong) UITextView *textView;
|
||||||
///关闭按钮
|
///关闭按钮
|
||||||
@property (nonatomic,strong) UIButton *closeButton;
|
@property (nonatomic,strong) UIButton *closeButton;
|
||||||
|
///模糊背景
|
||||||
@property (nonatomic,strong) UIToolbar *toolBar;
|
@property (nonatomic, strong) UIVisualEffectView *effectView;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@@ -43,9 +43,9 @@
|
|||||||
- (void)initSubViews {
|
- (void)initSubViews {
|
||||||
self.layer.masksToBounds = YES;
|
self.layer.masksToBounds = YES;
|
||||||
self.layer.cornerRadius = 15;
|
self.layer.cornerRadius = 15;
|
||||||
self.layer.borderWidth = 1;
|
self.layer.borderWidth = 0.5;
|
||||||
self.layer.borderColor = [UIColor.whiteColor colorWithAlphaComponent:0.5].CGColor;
|
self.layer.borderColor = [UIColor.whiteColor colorWithAlphaComponent:0.5].CGColor;
|
||||||
[self addSubview:self.toolBar];
|
[self addSubview:self.effectView];
|
||||||
[self addSubview:self.titleLabel];
|
[self addSubview:self.titleLabel];
|
||||||
[self addSubview:self.textView];
|
[self addSubview:self.textView];
|
||||||
[self addSubview:self.closeButton];
|
[self addSubview:self.closeButton];
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
make.bottom.mas_equalTo(self.textView.mas_bottom).offset(30);
|
make.bottom.mas_equalTo(self.textView.mas_bottom).offset(30);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[self.toolBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.effectView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.edges.mas_equalTo(self);
|
make.edges.mas_equalTo(self);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
@@ -127,13 +127,13 @@
|
|||||||
return _closeButton;
|
return _closeButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UIToolbar *)toolBar {
|
- (UIVisualEffectView *)effectView {
|
||||||
if (!_toolBar) {
|
if (!_effectView) {
|
||||||
_toolBar = [[UIToolbar alloc] init];
|
UIBlurEffect *beffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
|
||||||
_toolBar.barStyle = UIBarStyleBlack;
|
_effectView = [[UIVisualEffectView alloc] initWithEffect:beffect];
|
||||||
_toolBar.translucent = YES;
|
_effectView.alpha = 1;
|
||||||
}
|
}
|
||||||
return _toolBar;
|
return _effectView;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user