ios - How to make the scrolling animation on a view -


so have uiscrollerview... each time 5 seconds passes scrollview should move up.

setcontentoffset working doesnt have animation. should move slowly.

my code below

cgpoint bottomoffset = cgpointmake(0, newylocationforscrollview); 

[scroll setcontentoffset:bottomoffset animated:yes];

thanks in advance

[uiview animationwithduration0.3f ^(void) {  // code transition  }]; 

uiview reference

[scrollview setcontentoffset:offset animated:yes]; 

uiscrollview reference


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -