UIScrollView disable scrolling in just one direction? -
i've been unable find answer (maybe has hacked solution together).
is possible disable scrolling in uiscrollview in 1 direction? not talking disabling vertical or horizontal scrolling, 1 direction only. example, in uiscrollview, want able drag scrollview in downwards direction, not in upwards direction
thanks
turns out simple solution possible , easy:
- (void)scrollviewdidscroll:(uiscrollview *)scrollview { if (scrollview.contentoffset.y > 60) { [scrollview setcontentoffset:cgpointmake(0, 60)]; } }
Comments
Post a Comment