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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -