[TIMOB-8937] iOS: Feature to add the scroll enable/disable property to a scrollview
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-21T05:40:30.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Sprint 2012-14 API, Release 3.0.0 |
Components | iOS |
Labels | api, module_scrollview, qe-review, qe-testadded |
Reporter | Varun Joshi |
Assignee | Vishal Duggal |
Created | 2012-04-30T17:51:38.000+0000 |
Updated | 2012-12-21T05:40:30.000+0000 |
Description
It has been requested to add a new property to enable/disable scroll in a scrollview just like it is in a tableview.
The following change could work (provided by the customer):
In the TiUIScrollView.m add the following code:
{noformat}
-(void)setScrollable_:(id)args
{
[[self scrollView] setScrollEnabled:[TiUtils boolValue:args def:YES]];
}
{noformat}
Please make sure that this property is available on all platforms before resolving this ticket.
Test Case
Pull pending https://github.com/appcelerator/titanium_mobile/pull/2518
Verified fixed with mobile sdk-2.2.0.v20120810080115 Titanium Studio, build: 2.1.1.201207271312
Re-opening to edit label