房间完成

This commit is contained in:
启星
2025-12-01 18:42:49 +08:00
parent 7eb4f8d3b8
commit 2d37ab6844
55 changed files with 653 additions and 41 deletions

View File

@@ -99,7 +99,7 @@
-(void)setMessage:(NSString *)message{
_message = message;
CGFloat messageHeight = [message heightForFont:[UIFont systemFontOfSize:13] width:ScaleWidth(275)-1];
CGFloat messageHeight = [message heightForFont:[UIFont systemFontOfSize:13] width:ScaleWidth(275)-1-32];
CGFloat contentHeight = 16+24+13+42+12+14+messageHeight;
if (contentHeight < 180) {
contentHeight = 180;

View File

@@ -11,6 +11,7 @@
@property (nonatomic,weak)UIView* containerView;
@property (nonatomic,assign)BOOL isPlaying;
@property (nonatomic,assign)BOOL isClose;
@property (nonatomic,assign)BOOL isBackgroud;
@end
@implementation QXDrifNobilityJoinRoomView
@@ -75,6 +76,9 @@
if (self.isPlaying) {
return;
}
if (self.isBackgroud) {
return;
}
MJWeakSelf
[QXDrifNobilityJoinRoomView shareView].isPlaying = YES;
[QXDrifNobilityJoinRoomView shareView].model = [QXDrifNobilityJoinRoomView shareView].dataArray.firstObject;
@@ -142,6 +146,7 @@
}
}
-(void)dirfViewDidToBackground{
self.isBackgroud = YES;
dispatch_async(dispatch_get_main_queue(), ^{
[QXDrifNobilityJoinRoomView shareView].x = SCREEN_WIDTH;
[[QXDrifNobilityJoinRoomView shareView] removeFromSuperview];
@@ -151,6 +156,7 @@
}
-(void)dirfViewBecomeToFront{
self.isBackgroud = NO;
if ([QXDrifNobilityJoinRoomView shareView].isPlaying == NO) {
[QXDrifNobilityJoinRoomView shareView].x = SCREEN_WIDTH;
[[QXDrifNobilityJoinRoomView shareView] removeFromSuperview];