|
@@ -305,7 +305,6 @@
|
|
[self joinChatRoom];
|
|
[self joinChatRoom];
|
|
self.view.backgroundColor = [UIColor whiteColor];
|
|
self.view.backgroundColor = [UIColor whiteColor];
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(leaveRoomAction) name:@"classroomLogout" object:nil];
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(leaveRoomAction) name:@"classroomLogout" object:nil];
|
|
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(quitRoomAction) name:@"classroomQuit" object:nil];
|
|
|
|
|
|
|
|
[self configBeatConfig]; // 设置默认节拍器数据
|
|
[self configBeatConfig]; // 设置默认节拍器数据
|
|
[self configDefaultSoundVolume]; // 设置默认伴奏音量
|
|
[self configDefaultSoundVolume]; // 设置默认伴奏音量
|
|
@@ -349,24 +348,9 @@
|
|
|
|
|
|
}];
|
|
}];
|
|
[self hideAlertView];
|
|
[self hideAlertView];
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:@"backLoginView" object:nil];
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
-- (void)quitRoomAction {
|
|
|
|
- @weakObj(self);
|
|
|
|
- dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
|
- @strongObj(self);
|
|
|
|
- self.isQuitRoom = YES;
|
|
|
|
- [[LoginHelper sharedInstance] logout];
|
|
|
|
- self.cancleAlert = YES;
|
|
|
|
- [self hideAlertView];
|
|
|
|
- [TRTC_MANAGER leaveRoom:^(NSInteger code) {
|
|
|
|
-
|
|
|
|
- }];
|
|
|
|
- [[NSNotificationCenter defaultCenter] postNotificationName:@"showOtherLoginAlert" object:nil];
|
|
|
|
- });
|
|
|
|
-}
|
|
|
|
|
|
|
|
- (void)tapGesture: (UITapGestureRecognizer *)tapGesture {
|
|
- (void)tapGesture: (UITapGestureRecognizer *)tapGesture {
|
|
if (self.titleView.isDisplay) {
|
|
if (self.titleView.isDisplay) {
|