|
@@ -189,7 +189,9 @@
|
|
|
// 切换到竖屏
|
|
|
AppDelegate* delegate = (AppDelegate*)[UIApplication sharedApplication].delegate;
|
|
|
delegate.allowAutoRotate = NO;
|
|
|
+ @weakObj(self);
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ @strongObj(self);
|
|
|
if (IS_IPAD) {
|
|
|
self.zh_statusBarHidden = NO;
|
|
|
}
|
|
@@ -337,7 +339,9 @@
|
|
|
#pragma mark ----- 账号异地登陆
|
|
|
- (void)leaveRoomAction {
|
|
|
[LOADING_MANAGER MBShowAUTOHidingInWindow:@"该账号在其他设备上登录"];
|
|
|
+ @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;
|
|
@@ -350,7 +354,9 @@
|
|
|
}
|
|
|
|
|
|
- (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;
|
|
@@ -1153,7 +1159,9 @@
|
|
|
self.isQuitRoom = YES;
|
|
|
// 退出房间
|
|
|
[self.tipsView showTipsMessage:@"课程已结束" inView:self.view];
|
|
|
+ @weakObj(self);
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ @strongObj(self);
|
|
|
// 课程结束退出房间
|
|
|
SealClassLog(@"ClassEnd!");
|
|
|
[LOADING_MANAGER showHUD];
|
|
@@ -1300,7 +1308,9 @@
|
|
|
[[ClassroomService sharedService] displayTeacher];
|
|
|
[self.containerView containerViewRenderView:[ClassroomService sharedService].currentRoom.currentMember];
|
|
|
[self.videoListView showTeacherPrompt:YES];
|
|
|
+ @weakObj(self);
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ @strongObj(self);
|
|
|
[self renderMainContainerView];
|
|
|
});
|
|
|
}
|
|
@@ -1512,7 +1522,9 @@
|
|
|
[self resetPlayBeatAndAccompany];
|
|
|
|
|
|
[LOADING_MANAGER showHUD];
|
|
|
+ @weakObj(self);
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ @strongObj(self);
|
|
|
[LOADING_MANAGER removeHUD];
|
|
|
button.selected = YES;
|
|
|
self.toolView.isVideoDisplay = NO;
|
|
@@ -1553,7 +1565,9 @@
|
|
|
[[ClassroomService sharedService] displayTeacher];
|
|
|
[self.containerView containerViewRenderView:[ClassroomService sharedService].currentRoom.currentMember];
|
|
|
[self.videoListView showTeacherPrompt:YES];
|
|
|
+ @weakObj(self);
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ @strongObj(self);
|
|
|
[self renderMainContainerView];
|
|
|
});
|
|
|
[self.whiteboardListView removeFromSuperview];
|