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 <rm...@latencyzero.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to