Re: Displaying a string with Core Animation
Re: Displaying a string with Core Animation
- Subject: Re: Displaying a string with Core Animation
- From: Jens Alfke <email@hidden>
- Date: Wed, 30 Sep 2009 08:37:58 -0700
On Sep 30, 2009, at 3:41 AM, Gabriel Zachmann wrote:
This sort of works, EXCEPT that the string is always behind the image!
I tried to set the zPosition of my image sub-layer to either +1.0 or
-1.0, to no avail.
I think layers are always drawn in front of the view's own content.
I also tried to make my view layer hosted and add a CATextLayer with
the string property set to my message string (and font and fontSize).
But that never gets displayed.
That's the way I would do it. Something must be wrong with the way you
set up the text layer; maybe its coordinates put it outside the view's
bounds.
—Jens_______________________________________________
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