Alexander Stolte Expert Licensed User Longtime User Dec 13, 2020 #1 I want to hide the keyboard with the scrollview like in all other apps i'm using. I found this: Dismiss keyboard with swipe gesture In Messages.app you can dismiss the keyboard down by scrolling the list view. To be clear, it isn't simply responding to a scrollViewDidScroll event. The keyboard tracks with your finger as you swipe stackoverflow.com and this: UIScrollView.KeyboardDismissMode | Apple Developer Documentation Constants that determine how the system dismisses the keyboard when a drag begins in the scroll view. developer.apple.com 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?
I want to hide the keyboard with the scrollview like in all other apps i'm using. I found this: Dismiss keyboard with swipe gesture In Messages.app you can dismiss the keyboard down by scrolling the list view. To be clear, it isn't simply responding to a scrollViewDidScroll event. The keyboard tracks with your finger as you swipe stackoverflow.com and this: UIScrollView.KeyboardDismissMode | Apple Developer Documentation Constants that determine how the system dismisses the keyboard when a drag begins in the scroll view. developer.apple.com 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?
Semen Matusovskiy Well-Known Member Licensed User Dec 13, 2020 #2 1) keyboardDismissMode. 2) This is a property, not a method. Means, (if you selected corrected constant) no.SetField ("keyboardDismissMode", 2) Upvote 0
1) keyboardDismissMode. 2) This is a property, not a method. Means, (if you selected corrected constant) no.SetField ("keyboardDismissMode", 2)