Re: Core Animation and interaction
Re: Core Animation and interaction
- Subject: Re: Core Animation and interaction
- From: Tom <email@hidden>
- Date: Tue, 16 Mar 2010 13:43:48 +0100
>
> So every photo needs to respond to mouse events. Do I make every photo
> into its own view? Or are views too expensive to create? I want to
> easily support 100+ photos or more. (I will downsample the images for
> performance.)
>
In my experience using many views for similar functionality drastically
decreased application performance. You can implement single view with custom
drawing if you choose this approach.
> Photos need to be in layers as well so I can change the stacking
> order. Do I use CoreAnimation for this?
>
>
You can definetly use CA for this (you can use zPosition for layering). You
can represent each photo in a separate layer so you can move it arround as
needed. You can also group layers if needed.
Check Apple's documentation on CA, I also recommend Bill Dudley's Core
Animation book from pragmatic programmers.
Tom
_______________________________________________
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