Re: UIKit: Customized text display
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