ios - UIView animation determine center during animation -
i'm using uiview's + animatewithduration:delay:options:animations:completion:
method move view along line on course of few seconds or so.
i determine, @ arbitrary time during animation, uiview along path moving. when , try , access center
or frame
, find location set it's final destination.
the reason i'm doing i've got nstimer firing every 0.1 seconds (or thereabouts) update parent view show line uiview has been. want able keep updated uiview moves.
any ideas on how this? similar question found http://forums.macrumors.com/showthread.php?t=1056105, there no resolution shown.
alternatively...are there better ways this?
thanks!
uiviews backed calayers, , layer actual animation. calayer exposes property presentationlayer
which, when accessed, returns copy of calayer represents, closely can, current state visible user. asking view.layer.presentationlayer.frame
can frame of layer visible user right now, , corresponds frame of uiview.
Comments
Post a Comment