How do I compute the screen width of a particular font?
How do I compute the screen width of a particular font?
- Subject: How do I compute the screen width of a particular font?
- From: "Frederick C. Lee" <email@hidden>
- Date: Wed, 5 Aug 2009 15:46:47 -0400
Greetings: I need to adjust a UILabel's width per with of its text.
What I did was to get the text's length via [NSString length]. Of course,
the displayed UILabel width is too narrow to fully display the actual
string.
So I believe I need to compute the true width based on the number of
font-sized characters.
Is there a simple, quick way to do this?
Regards,
Ric.
_______________________________________________
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