ios - Stopping Further Execution until UIScrollView ends animating -
i have next scenario,
i have uiscrollview contentoffset @ starting equal (0.0,0.0)
now have set new scrollview contentoffset animation as
[myscrollview setcontentoffset:cgpointmake(100.0,0.0) animated:yes]; now on nextline printing contentoffset's value
nslog(@"contentoffset:%@",nsstringfromcgpoint(myscrollview.contentoffset)); now here, printing older value of contentoffset. if set value without doing animation giving me new contentoffset.
what should that, give me new value of contentoffset animation too
you going have setup delegate uiscrollview , hear delegate method scrollviewdidendscrollinganimation:. scroll position within method , phone call next bit of code need run 1 time value found.
ios iphone objective-c animation uiscrollview
No comments:
Post a Comment