• 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
Rect for centered text in UILabel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rect for centered text in UILabel?


  • Subject: Rect for centered text in UILabel?
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Thu, 30 Mar 2017 15:18:00 +0000

I have a very wide UILabel that will take different text over time. Single
line. No attributed.

I would like to position an image to the left of the first character in the
label any time it's updated. So I need to get a CGRect or something of the
text within the UILabel itself. I know I did this years ago, but I can't
remember how I did it.

Looking to do this in Swift. Any ideas or things I'm blanking on?

Thanks,
Eric
_______________________________________________

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: Unicode filenames with Apple File System and UIManagedDocument
  • Next by Date: Re: Can't use +initialize, now what?
  • Previous by thread: Re: Can't use +initialize, now what?
  • Next by thread: Binary floating point format
  • Index(es):
    • Date
    • Thread