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
Post a Comment