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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to