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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -