• 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: UIKit: Customized text display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIKit: Customized text display


  • Subject: Re: UIKit: Customized text display
  • From: Ross Carter <email@hidden>
  • Date: Tue, 07 Sep 2010 14:30:45 -0400

On Sep 7, 2010, at 11:14 AM, Phillip Mills wrote:

>  Perhaps I need to use my own container view and dynamically alternate UILabels and UITextFields...or subclass UITextView...or build a new view type from scratch....  Core text?  Other suggestions?_______________________________________________

My $0.02: If all the lines are formatted the same way, and all the annotations are formatted the same way, I'd vote for alternating textfields and labels. However, I think whatever approach you choose is going to get complex. For example, you will constantly have to move things around as the user adds/removes text in the active textfield. CoreText can draw whatever you like, but does no editing.

The simplest thing might be to display all the lines and annotations in one view using CoreText, and edit lines in a different view, rather than in-place. Maybe, user touches a line to pop up a modal view that contains the edited line, keyboard, and any other controls that are appropriate.  Not the best user experience, but certainly doable.
_______________________________________________

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: 
 >UIKit: Customized text display (From: Phillip Mills <email@hidden>)

  • Prev by Date: Compiling Core Data Mapping Model : Spurious Warning re 10.5 Deployment?
  • Next by Date: Re: Number of layout managers for NSTextStorage increases
  • Previous by thread: UIKit: Customized text display
  • Next by thread: What REALLY determines which application opens a file?
  • Index(es):
    • Date
    • Thread