Re: iOS multiple text colors in an editable text field
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