Re: Drawing text into a UiView
Re: Drawing text into a UiView
- Subject: Re: Drawing text into a UiView
- From: "Henry McGilton (Boulevardier)" <email@hidden>
- Date: Tue, 25 Aug 2009 19:56:11 -0700
On Aug 23, 2009, at 10:57 PM, J J wrote:
I'm trying to write an app that will page through text .. I'm trying
to grab the text, find out how much with fit on a page, write the
text to a view (page), then perhaps paginate the pages around it
onto other views to be ready as needed.
Anyone have any ideas on how this would work ? I'm having a hard
time finding examples of writing text to a view directlyI'd love to
do it via UIWebView, but not sure how I would know how big one page
would be
Why would a UITextView not do the job? UITextView is already a
sub-class of UIScrollView,
so all the scrolling behaviour is done for you.
If you really need to 'roll your own', study the NSString UIKit
Additions Reference API in UIKit.
That describes methods for fitting text into specified rectangles with
specified fonts
and specified line-breaking modes . . .
Cheers,
. . . . . . . . Henry
_______________________________________________
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