> How could i force the animation to actually change the alpha value
> from 1.0 to 0.0 and make it stay 0.0 unless i change it back?

Change your code to look like this:

CABasicAnimation * alphaAnimation  = ...
 ...
    [[theView layer] setOpacity:0.0];  // Set your opacity here
    [[theView layer] addAnimation:alphaAnimation forKey:@"opacity"];
// Note the key
}

By setting the key to @"opacity" instead of @"opacityAnimation" your
animation will used instead of the default animation when you call
[CALayer setOpacity:].

There is a good WWDC talk about animation on the ipad that addresses
this.  I don't remember the exact talk, though.

Chase
_______________________________________________

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

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

Reply via email to