ios - Control scrollview programmatically — Objective-c -


i have scrollview buttons on it. when 1 button clicked want on top of screen button.frame.origin.y self.view.frame.origin.y. how do this?

you can this

- (void)buttonpressed:(uibutton*)sender {     [scrollview setcontentoffset:sender.frame.origin animated:yes]; } 

Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

java - Multi-Label Document Classification -

python - How to create a legend for 3D bar in matplotlib? -