I have been searching around, but there seems no good answer for this simple question. So I am asking again: how to animate line-drawing in iphone dev?
Basically what I want is something like this:
@implementation MyUIView
- (void) triggerLineDrawing: (CGPathRef) path {
...
// animate line drawing here
// and the line should disappear automatically after a few seconds
}
Can it be done?
You can't do it automatically, only bu hand. To do it manually you should do something like this:
You can vary interpolation algorythm, speed of line drawing etc. to get the effect that you need.