Re: Core animation
Re: Core animation
- Subject: Re: Core animation
- From: Bill Dudney <email@hidden>
- Date: Mon, 30 Jun 2008 08:07:04 -0600
Text is tricky because of the anti-aliasing issues.
Broaden your search though there are tons of examples on how to fade a
layer in and out of a scene (apple's samples, my blog, others as well).
Basically though
- parent view needs to be layer backed (via setWantsLayer:YES)
- create a layer whose content is your text (or the text layer if you
don't need fine control over the anti-aliasing)
- add the text layer as a sublayer of the view's layer
- fade to zero opacity, when the fade is complete remove the layer
from its superlayer
that will give you a fade in and fade out, there are of course other
ways to do this that might or might not be easier...
HTH,
-bd-
http://bill.dudney.net/roller/objc
On Jun 30, 2008, at 5:04 AM, Papa-Raboon wrote:
Hi All,
I was wondering if many of you have had a go at core animation yet?
I am personally looking at making a piece of text fade in and fade
out as a
confirmation that something worked in my latest project. Currently I
am just
popping a bit of text on screen using:
[succcessFlag setStringValue:@"Record Added"];
I presume we are talking pretty simple here but the question is how
simple.
If any of you knows of any cool tutorials on really quick and simple
core
animation text effects could you please give me the heads up.
I've Googled loads for this but no joy yet.
Cheers
Paul Randall
_______________________________________________
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
_______________________________________________
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