Re: Layer needs display if presentation layer moves?
Re: Layer needs display if presentation layer moves?
- Subject: Re: Layer needs display if presentation layer moves?
- From: Seth Willits <email@hidden>
- Date: Tue, 28 Jan 2014 18:16:24 -0800
On Jan 28, 2014, at 5:26 PM, Kyle Sluder <email@hidden> wrote:
> The most straightforward way to do this is probably going to be creating
> a custom CAAnimation that drives the position of the views which are
> moving around, as well as a property of the "connections" layer that
> encodes the positions between which lines should be drawn. The
> connections layer can return YES for +needsDisplayForKey: for that "line
> endpoints" key.
Ok, well I think that's roughly what I'm fumbling my way through. To me there's nothing straightforward about it, though. Maybe I'm being dense, but it's just… not working.
I'll spare the long explanation of failures. Here's a simple project:
http://www.sethwillits.com/temp/CATest.zip
Click on the view and it moves the red square. While the square is moving, the goal is to have second layer continuously update so the line spins. If you have the time and can demonstrate the approach you've described I'd be very grateful. I've been at this for hours.
Still trying…
--
Seth Willits
_______________________________________________
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