Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Adding scrollsToTop property for ScrollableView, allowing to disable it so a ScrollView can control the status bar event
-(void)refreshScrollView:(CGRect)visibleBounds readd:(BOOL)readd;
-(void)setScrollsToTop_:(id)value; // New property added
[[self scrollview] setBounces:![TiUtils boolValue:value]];
//Allows use of scrollsToTop property on a scrollable view.
//This is useful when you have multiple scrollable views in your parent view, you can then
//set which scrollable view will respond to tapping the status bar to scroll to top.
[[self scrollview] setScrollsToTop:[TiUtils boolValue:value]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment