• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawing text into a UiView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Drawing text into a UiView (From: J J <email@hidden>)

  • Prev by Date: Re: Selection highlight in NSTextFieldCell
  • Next by Date: Re: Possible reasons why "no help is available"?
  • Previous by thread: Drawing text into a UiView
  • Next by thread: Adding Segmented Buttons to Toolbar.
  • Index(es):
    • Date
    • Thread