arrays - Make dotted line following uibezierpath -


I have seen many examples of drawing a dashed line for iOS. I would like to draw a dotted line made of those chakras that follow my path. I want to use a shape layer so that I can animate the stroke which is being pulled on the screen.

Any suggestions for drawing small dots that follow my Uibezer Path?

On the contrary - is not it possible? If so, then I can arrange a bunch of circles with a path and then I can run again through the array of circles that make them visible? But how to array array with a bezier?

I was able to draw a dashed line with circles between two: Uiviews:

  // dotted line CGContextSetStrokeColorWithColor (Ctx, [UIColor redColor] .CGColor); CGContextSetLineWidth (CTX, 10); // relevant code CGFloat dash [] = {0.0, 10 * 2}; // relevant code CGContextSetLineCap (ctx, kCGLineCapRound); // relevant code CGContextSetLineDash (CTX, 0.0, Dash, 2); CGContextMoveToPoint (CTX, Scene.center.x, see.center.i); CGContextAddLineToPoint (ctx, anotherView.center.x, anotherView.center.y); CGContextStrokePath (ctx);    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -