• 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: iOS multiple text colors in an editable text field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS multiple text colors in an editable text field


  • Subject: Re: iOS multiple text colors in an editable text field
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 11 Dec 2010 09:27:05 -0800

On Fri, 10 Dec 2010 12:43:48 +1100, BareFeetWare <email@hidden> said:
>3. iOS 3.2 and above state that they provides NSAttributedString support. You can fiddle around to get multiple colors in the objects, but there's still no way to actually display the colored text (which makes the NSAttributedString support seem worthless).
...
>Is anything I've said above incorrect?

The part that I quoted. NSAttributedString support is not "worthless" at all. Both CATextLayer and the Core Text drawing routines accept an NSAttributedString. With CATextLayer, displaying an attributed string is one line of code!

However, that doesn't solve your problem. The solution is probably to assign yourself a different problem; there's no styled editable text on iOS and that's that. It doesn't pay to fight against the framework. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________

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

  • Follow-Ups:
    • Re: iOS multiple text colors in an editable text field
      • From: BareFeetWare <email@hidden>
  • Prev by Date: Re: [iOS] How to add push animation to view controller without a navigation controller
  • Next by Date: Re: Encoding UIViews take long time..
  • Previous by thread: Re: iOS multiple text colors in an editable text field
  • Next by thread: Re: iOS multiple text colors in an editable text field
  • Index(es):
    • Date
    • Thread