iOS Question Delay hiding keyboard [SOLVE]

webhost.company

Active Member
Licensed User
Longtime User
When the keyboard appears, the event KeyboardStateChanged perform quickly

But on disappearing, the keyboard, take about 200ms to perform KeyboardStateChanged

Why?

I need that in my chat app, when the user clicks on the send button and the keyboard is hiding, my panel hide synchronose keyboard hiding
 

Semen Matusovskiy

Well-Known Member
Licensed User
Try to turn off an animation. Let's say TextField.
In BeginEdit
B4X:
Dim no As NativeObject
no.Initialize("UIView").RunMethod("setAnimationEnabled:", Array(False))
In EndEdit
B4X:
Dim no As NativeObject
no.Initialize("UIView").RunMethod("setAnimationEnabled:", Array(True))

I did not try, but probably better to do separate subroutine and to use CallSubDelayed
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
 
Upvote 0

webhost.company

Active Member
Licensed User
Longtime User
My problem was solved with this solution Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…