Rect for centered text in UILabel?
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