ios - How can I maintain relative scrolling position within a UIScrollView during a UISnapBehavior animation? -
i using uidynamicanimator's uisnapbehavior animate these circles between 2 states: http://cl.ly/image/1g3p1b2x2v14/image%202013.09.24%2011%3a35%3a43%20am.png
that works great. however, put inside uiscrollview. when scroll before uisnapbehavior animation has "settled" (there seems delay after looks finishes , when finishes), circles lose relative positioning scroll container: http://cl.ly/image/1e0i3l460j1v/image%202013.09.24%2011%3a32%3a10%20am.png
when scroll after waiting few seconds after animation has "settled", circles not lose relative positioning
i'm assuming because uisnapbehavior animates things fixed positions, , reverts relative positioning after finishes, i'm not sure if that's true.
i setting uidynamicanimator on uiview containing uiscrollview. setting uidynamicanimator initwithtarget uiscrollview seems have fixed it.
Comments
Post a Comment