From 23b7788063d25ec1edb439f7c5282cdfcc27a4e7 Mon Sep 17 00:00:00 2001 From: omigamedev Date: Sat, 24 Mar 2018 19:56:12 +0100 Subject: [PATCH] fix animation on iOS keyboard --- PanoPainter/GameViewController.m | 4 ++-- engine/app_events.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PanoPainter/GameViewController.m b/PanoPainter/GameViewController.m index b03c157..ec40b6a 100644 --- a/PanoPainter/GameViewController.m +++ b/PanoPainter/GameViewController.m @@ -108,14 +108,14 @@ NSThread* lock_thread; - (void)registerForKeyboardNotifications { [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(keyboardWasShown:) + selector:@selector(keyboardWillBeShown:) name:UIKeyboardWillShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillBeHidden:) name:UIKeyboardWillHideNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(keyboardWillBeShown:) + selector:@selector(keyboardWasShown:) name:UIKeyboardDidShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasHidden:) diff --git a/engine/app_events.cpp b/engine/app_events.cpp index 84c8620..c1f20d5 100644 --- a/engine/app_events.cpp +++ b/engine/app_events.cpp @@ -37,7 +37,7 @@ void App::hideKeyboard() redraw = true; #ifdef __IOS__ [ios_view resignFirstResponder]; - [ios_view unregisterForKeyboardNotifications]; +// [ios_view unregisterForKeyboardNotifications]; #elif __ANDROID__ displayKeyboard(and_app, false); #endif