Sunday 15 August 2010

objective c - How do I animate and move a circle across a bezier path? -



objective c - How do I animate and move a circle across a bezier path? -

hey i'm pretty new objc , coding in general. want create circle move across uibezier path (close sin function) 1 'unit' every hr , create shadow little , yellow, brigger , white, little , dim 1 time again moves , downwards curve. crest of sin function should midday (noon), , 'tails' of curve should midnight on both sides. possible? , can find resources help me? couldn't seem find online help me since don't know need accomplish this. thanks!

you utilize cakeyframeanimation class move view along path. create path, , animate position property of view's layer. illustration of in apple's core animation documentation in "using keyframe animation alter layer properties" section. other things want shadow, can done cabasicanimation. can animate shadow's color, offset, radius, path, , opacity.

objective-c uibezierpath

No comments:

Post a Comment