[TIMOB-8651] iOS: Ability to disable scrolling in a ScrollView
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-07-27T11:20:26.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | api, look1 |
| Reporter | Pedro Enrique |
| Assignee | Neeraj Gupta |
| Created | 2012-04-10T11:12:52.000+0000 |
| Updated | 2017-03-22T22:16:34.000+0000 |
Description
Expose the UIScrollView setScrollEnabled property to the JavaScript.
Code in TiUIScrollView.m
-(void)setScrollEnabled_:(id)args
{
[[self scrollView] setScrollEnabled:[TiUtils boolValue:args def:YES]];
}
Javascript could would be:
var scroll = Ti.UI.createScrollView({
scrollEnabled: false
});
Duplicate of TIMOB-8937
Closing ticket as duplicate and links to the related ticket have been provided above.