• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CATextLayers text alignment?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CATextLayers text alignment?


  • Subject: CATextLayers text alignment?
  • From: Tim Andersson <email@hidden>
  • Date: Fri, 10 Oct 2008 22:09:48 +0200

Hi there.

I'm using a CATextLayer to display some text which the user can change the font size of. When the user changes the font size, I still want my text to be centered, both vertically and horizontally.
As far as I know you can only set the the CATextLayers alignmentMode to kCAAlignmentCenter to get it centered on one of the axis (I never know which one is which), but is there any way that it can be centered on both axis?


Yours sincerely,
Tim Andersson
_______________________________________________

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


  • Prev by Date: Re: Strategy for naming support folder
  • Next by Date: NSNull and @""
  • Previous by thread: Re: inconsistent float behaviour
  • Next by thread: CATextLayers text alignment?
  • Index(es):
    • Date
    • Thread