Re: Sizing text to fit into UITextView
Re: Sizing text to fit into UITextView
- Subject: Re: Sizing text to fit into UITextView
- From: "Jason Foreman" <email@hidden>
- Date: Mon, 29 Dec 2008 14:09:24 -0600
On Mon, Dec 29, 2008 at 1:57 PM, Steve Wetzel <email@hidden> wrote:
> Is there any easy way to change the size of the font so a string will fit
> into UITextView?
You'll probably want to look at the stuff in the NSString UIKit
additions. I believe the category is UIDrawing. There you'll find
various methods to determine the best font size for drawing a string
in a given rect or with a particular width, etc.
Jason
_______________________________________________
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