iOS Question Scrollview set directionalLockEnabled

Alexander Stolte

Expert
Licensed User
Longtime User
I have a problem with my AS_ViewPager, if it has the full height of the page, then you can also scroll vertically while scrolling horizontally. To avoid this I found this property at apple. How can I use this property for the scrollView?

A Boolean value that determines whether scrolling is disabled in a particular direction.

"If this property is NO, scrolling is permitted in both horizontal and vertical directions. If this property is YES and the user begins dragging in one general direction (horizontally or vertically), the scroll view disables scrolling in the other direction. If the drag direction is diagonal, then scrolling doesn’t lock and the user can drag in any direction until the drag completes. The default value is NO."

I have tried:
B4X:
Dim no As NativeObject=xclv_main.sv
no.RunMethod("directionalLockEnabled:",Array(True))
 
Top