objective c - how to draw a line follow the ball on animation,like Discovr app? -
how draw line follow ball on animation,like discovr app ?
i want make app discovr,have balls float , connect lines.
how can redraw lines when balls moving?
i use uiview animation on balls.
thanks.
i suggest using cashapelayer. shape layer takes cgpath, , animate changes path long changed path contains same number of points/lines/arcs.
you animate movement of balls , create animated change shape layer moves endpoints of lines @ same time.
Comments
Post a Comment