How to scroll a UIScrollView programatically ?

Hi,

If you want to scroll a UIScrollView programatically as the result of any IBOutlet actions, use the following code in that particular action.

[yourScroller setContentOffset:CGPointMake(0,250) animated:YES];

This will scroll your scroller named ‘yourScroller’ automatically to the point specified!
:)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>