修复退出房间的时候键盘无法收回的问题
This commit is contained in:
@@ -220,7 +220,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
}
|
||||
|
||||
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
||||
[self.view endEditing:YES];
|
||||
[self.menuContainerView menuResignFirstResponder];
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated {
|
||||
@@ -1229,6 +1229,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
}
|
||||
|
||||
- (void)exitRoom {
|
||||
[self.menuContainerView menuResignFirstResponder];
|
||||
if (self.roomInfo.roomModeType == RoomModeType_Open_Micro_Mode || self.roomInfo.roomModeType == RoomModeType_Open_Blind) {
|
||||
NSString * roomUid = [NSString stringWithFormat:@"%ld", self.roomInfo.uid];
|
||||
NSString * uid = [AccountInfoStorage instance].getUid;
|
||||
@@ -1339,6 +1340,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
}
|
||||
|
||||
- (void)miniRoom {
|
||||
[self.menuContainerView menuResignFirstResponder];
|
||||
if(self.roomInfo.type == RoomType_MiniGame) {
|
||||
if ([self.littleGameView isInSudGame]) {
|
||||
TTAlertConfig *config = [[TTAlertConfig alloc] init];
|
||||
|
Reference in New Issue
Block a user