0

Is that possible?

If not with CATextLAyer, then how can I do that?

Bo Persson
  • 90,663
  • 31
  • 146
  • 203
shannoga
  • 19,649
  • 20
  • 104
  • 169
  • Can you give an example of what you're talking about? The answer almost certainly is "two CATextLayers" (or two UILabels, or CoreText, or hand drawing). – Rob Napier Aug 24 '11 at 21:36
  • hey, thats exactly what i did. i hoped i will be able to avoid that. – shannoga Aug 25 '11 at 16:15

2 Answers2

2

You can use NSMutableAttributedString in CATextLayer. You can specify different attributes like color, font to different parts of string.

0

The solution was to break the word to letters and combine it back with 3 different text layers. I will try to post the function i have build for others who needs it.

shannoga
  • 19,649
  • 20
  • 104
  • 169