Disable bounce scrolling in a tableview
Hi,
I would like to know how to disable bounce scrolling in a tableview for the IOS platform.
Haven't found anything about it.
Thanks in advance.
4 Answers
-
Without building an own Titanium module, I was successful with following workaround.
Transform your code
var tableView = Ti.UI.createTableView({ top: myTop, height: myHeight, // ... }); myWin.add(tableView);
into:
// workaround var containerScrollView = Ti.UI.createScrollView({ top: myTop, height: myHeight, // ... disableBounce: true }); var tableView = Ti.UI.createTableView({ top: 0, height: 'auto', // ... scrollable: false }); containerScrollView.add(tableView); myWin.add(containerScrollView);
It disables table view's scrolling.
The scrolling functionality is undertaken by a container scroll view (with disabled bouncing). -
Try disableBounce but I'm not sure if is not a scrollview only property.
-
Already tried that one, doesn't work
-
have you found any solution for that?