• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: sync drawing an ever-increasing path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sync drawing an ever-increasing path


  • Subject: Re: sync drawing an ever-increasing path
  • From: David Duncan <email@hidden>
  • Date: Tue, 23 Oct 2012 11:37:54 -0700

On Oct 23, 2012, at 4:37 AM, Roland King <email@hidden> wrote:

> I want to animate the drawing of  CGPath in a UIView, so it looks as if it's being drawn. I have the UIView, I have the CGPath, I am able to split the CGPath at any point from 0 to 100% into that which should be drawn and that which shouldn't yet, that's all done, so I can, fairly efficiently, call -(CGPath)[ myObject fractionalPath:(CGFloat)fraction ] and get a path.


You can do this with a CAShapeLayer by animating the strokeEnd property. Should be very simple to do, although if your path is very complex it may make more sense to break it into pieces and use multiple shape layers animated sequentially.
--
David Duncan


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: sync drawing an ever-increasing path
      • From: Roland King <email@hidden>
    • Re: sync drawing an ever-increasing path
      • From: David Rowland <email@hidden>
References: 
 >sync drawing an ever-increasing path (From: Roland King <email@hidden>)

  • Prev by Date: Re: App Sandbox Container or Data Directory
  • Next by Date: Re: sync drawing an ever-increasing path
  • Previous by thread: Re: sync drawing an ever-increasing path
  • Next by thread: Re: sync drawing an ever-increasing path
  • Index(es):
    • Date
    • Thread