iOS Question how to set the KeyboardDismissMode to an scrollview

Alexander Stolte

Expert
Licensed User
Longtime User
I want to hide the keyboard with the scrollview like in all other apps i'm using.
I found this:
and this:
but if i set this then this error occurs:
B4X:
Method not found: KeyboardDismissMode:, target: <UIScrollView: 0x11c00c600; frame = (0 0; 428 845); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x283053360>; layer = <CALayer: 0x283e5df00>; contentOffset: {0, 0}; contentSize: {428, 0}; adjustedContentInset: {0, 0, 0, 0}>
with this code:
B4X:
Dim no As NativeObject = xclv_chat.sv
no.RunMethod("KeyboardDismissMode:", Array(2))
what am i doing wrong?
 
Top