Re: How do I animate Core Graphics drawing?
Re: How do I animate Core Graphics drawing?
- Subject: Re: How do I animate Core Graphics drawing?
- From: email@hidden
- Date: Wed, 12 Feb 2014 08:58:00 +0900
I don't recall the title but there was a recent WWDC video that includes this topic.
It's not a one step process but not that hard either.
Sent from my iPhone
> On 2014/02/12, at 8:43, Rick Mann <email@hidden> wrote:
>
> In my app, I annotate a floor plan with lines of arbitrary length and location, capped with circles (like stretchy barbells). The UZ design calls for collapsing these into a single circle placed at the center of the line when they're not being edited. There can be many (probably not more than 10 or 20) of these lines scattered over the floor plan.
>
> I'd like to animate the collapse and expansion of these barbells, all at a time. They do not live in their own views, but rather are drawn in one large overlay view that spans the screen, in -drawRect:.
>
> Can I leverage Core Animation, or should I just make a timer and animate it myself (by repeatedly calling -setNeedsDisplay on my overlay view)?
>
> I could try to make these drawn with CAShapeLayers, but during editing, the user can drag one end or the other around arbitrarily. A layer that just bounds the barbell would have to dynamically change size as the user does this, or be sized full-screen, which might consume a lot of memory; I'm not sure.
>
> --
> Rick
_______________________________________________
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