• 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: CAShapeLayer curved path animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CAShapeLayer curved path animation


  • Subject: Re: CAShapeLayer curved path animation
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 7 Nov 2010 08:28:15 -0800

On Sun, 7 Nov 2010 09:41:05 +1000, Gideon King <email@hidden> said:
>If I could draw the curve myself during animation, I could get it to do what I want, but I don't see any way of doing that.
>

Actually, if I'm understanding the question correctly, that might be a good solution. Perhaps you'd have to give up use of the shape layer and just use an ordinary layer - I'm not sure. But you can probably express your curve as an animatable property and when that property is animated your drawing code (e.g. drawInContext) will be called multiple times. The fact that you can supply your own animatable properties is one of the coolest and least known features of layers. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________

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

  • Prev by Date: Re: Move UINavigationBar down?
  • Next by Date: Re: Understanding the Run loop idea and the updating of controls during long operations
  • Previous by thread: Re: CAShapeLayer curved path animation
  • Next by thread: NSOobject as ViewController and MVC architecture
  • Index(es):
    • Date
    • Thread