房间公告显示异常的问题
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}];
|
||||
|
Reference in New Issue
Block a user