房间公告显示异常的问题

This commit is contained in:
fengshuo
2022-03-15 11:16:00 +08:00
parent ee915d1297
commit ff8a6e2095
4 changed files with 156 additions and 11 deletions

View File

@@ -32,6 +32,7 @@
#import "XPRoomAnchorInfoCardView.h"
#import "AnchorGiftValueView.h"
#import "XPRoomTopicViewController.h"
#import "XPRoomTopicAlertView.h"
@interface XPRoomFunctionContainerView ()
///host
@property (nonatomic,weak) id<RoomHostDelegate>delegate;
@@ -287,17 +288,12 @@
editTopicVC.roomInfo = roomInfo;
[self.delegate.getCurrentNav pushViewController:editTopicVC animated:YES];
} else {
NSString * title = roomInfo.roomDesc.length > 0 ? roomInfo.roomDesc : @"暂未设置话题";
TTAlertConfig * config = [[TTAlertConfig alloc] init];
config.title = title;
config.message = roomInfo.introduction.length > 0 ? roomInfo.introduction : @"暂未设置房间话题";
config.actionStyle = TTAlertActionCancelStyle;
config.cancelButtonConfig.title = @"关闭";
[TTPopup alertWithConfig:config confirmHandler:^{
} cancelHandler:^{
}];
TTPopupService * config = [[TTPopupService alloc] init];
XPRoomTopicAlertView * alertView = [[XPRoomTopicAlertView alloc] init];
alertView.title = roomInfo.roomDesc;
alertView.message = roomInfo.introduction;
config.contentView = alertView;
[TTPopup popupWithConfig:config];
}
}
}];