公告弹框模糊修改
This commit is contained in:
@@ -1346,6 +1346,7 @@
|
||||
[self.delegate.getCurrentNav pushViewController:editTopicVC animated:YES];
|
||||
} else {
|
||||
TTPopupService * config = [[TTPopupService alloc] init];
|
||||
config.maskBackgroundAlpha = 0;
|
||||
XPRoomTopicAlertView * alertView = [[XPRoomTopicAlertView alloc] init];
|
||||
alertView.title = roomInfo.roomDesc;
|
||||
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) {
|
||||
RoomInfoModel * roomInfo = self.hostDelegate.getRoomInfo;
|
||||
TTPopupService * config = [[TTPopupService alloc] init];
|
||||
config.maskBackgroundAlpha = 0;
|
||||
XPRoomTopicAlertView * alertView = [[XPRoomTopicAlertView alloc] init];
|
||||
alertView.title = roomInfo.roomDesc;
|
||||
alertView.message = roomInfo.introduction;
|
||||
|
@@ -22,8 +22,8 @@
|
||||
@property (nonatomic,strong) UITextView *textView;
|
||||
///关闭按钮
|
||||
@property (nonatomic,strong) UIButton *closeButton;
|
||||
|
||||
@property (nonatomic,strong) UIToolbar *toolBar;
|
||||
///模糊背景
|
||||
@property (nonatomic, strong) UIVisualEffectView *effectView;
|
||||
|
||||
@end
|
||||
|
||||
@@ -43,9 +43,9 @@
|
||||
- (void)initSubViews {
|
||||
self.layer.masksToBounds = YES;
|
||||
self.layer.cornerRadius = 15;
|
||||
self.layer.borderWidth = 1;
|
||||
self.layer.borderWidth = 0.5;
|
||||
self.layer.borderColor = [UIColor.whiteColor colorWithAlphaComponent:0.5].CGColor;
|
||||
[self addSubview:self.toolBar];
|
||||
[self addSubview:self.effectView];
|
||||
[self addSubview:self.titleLabel];
|
||||
[self addSubview:self.textView];
|
||||
[self addSubview:self.closeButton];
|
||||
@@ -57,7 +57,7 @@
|
||||
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);
|
||||
}];
|
||||
|
||||
@@ -127,13 +127,13 @@
|
||||
return _closeButton;
|
||||
}
|
||||
|
||||
- (UIToolbar *)toolBar {
|
||||
if (!_toolBar) {
|
||||
_toolBar = [[UIToolbar alloc] init];
|
||||
_toolBar.barStyle = UIBarStyleBlack;
|
||||
_toolBar.translucent = YES;
|
||||
- (UIVisualEffectView *)effectView {
|
||||
if (!_effectView) {
|
||||
UIBlurEffect *beffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
|
||||
_effectView = [[UIVisualEffectView alloc] initWithEffect:beffect];
|
||||
_effectView.alpha = 1;
|
||||
}
|
||||
return _toolBar;
|
||||
return _effectView;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user