Re: Simple Flipbook Animation?
Re: Simple Flipbook Animation?
- Subject: Re: Simple Flipbook Animation?
- From: Jeshua Lacock <email@hidden>
- Date: Sat, 1 Nov 2008 15:22:06 -0600
On Nov 1, 2008, at 2:20 PM, Ashley Clark wrote:
As well I don't see in my version of the SDK where UIAnimator is
defined. If you're trying to use private API here, don't. Just set
the duration on the anim object directly and add it to your
CALayer. You can get the layer used by a view by sending the layer
message to the view (NS or UI).
You mean directly by setting the properties like with:
anim.duration = 3.0;
anim.values = images;
anim.calculationMode = @"discrete";
anim.repeatCount = HUGE_VAL;
anim.duration = 3.0;
is also equivalent to
[anim setDuration:3.0];
The dot syntax for properties is just syntactic sugar.
So is that what you were recommending?
I have also tried that method.
I have tried adding it to the layer with:
[[self layer] addAnimations:anim withDuration:1.5 start:YES];
Is that what you mean? Or could you please show me an example?
// where someLayer is initialized elsewhere
CALayer *someLayer;
[someLayer addAnimation:anim forKey:@"imageFlipping"];
The key used at the end is just used as a way for you to remove your
animation or retrieve it at a later point.
It is crashing with or without adding the animation, so it seems like
CAKeyframeAnimation is not liking my images NSArray. They have valid
memory addresses, and I am using the same array of UIImages somewhere
else, so not sure what the issue might be.
I'm stumped!
Thanks,
Jeshua Lacock
Founder/Programmer
3DTOPO Incorporated
<http://3DTOPO.com>
Phone: 877.240.1364
_______________________________________________
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