房间完成
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user