Questions tagged [catextlayer]

A CATextLayer is a Core Animation layer for showing text. It allows the displaying of simple and attributed strings as well.

A CATextLayer is a Core Animation layer for showing text. It allows the displaying of simple and attributed strings as well by assigning a CFString or CFAttributedStringto its property string.

Documentation:

140 questions
0
votes
1 answer

I want to set text of CATextLayer on click of button. how can it be achieved?

I made a CALayer *sublayer over the main view, then I added CATextLayer over sublayer. Now I want to show text on the CATextLayer by clicking a button on my main view. How can I do this?
Sahil Mahajan
  • 3,922
  • 2
  • 29
  • 43
0
votes
1 answer

NSAttributed String with CATextLayer inside a UITableView

My requirement is parts of text should be displayed as bold and colored within each cell of a UITableview. I have managed it using the NSMutableAttributedString, CATextLayer and cell's contenview's layer. Below is the code that i have used to…
-1
votes
1 answer

What is the value for spacing between lines in a wrapped CATextLayer?

I am trying to create a CATextLayer with a frame that is the exact size of 3 lines of text + the spacing in between this text. I know that my font size is 12. The height of the frame should therefore be 12*3 + 2*spaceSize. I want the number that…
Sam
  • 1,765
  • 11
  • 82
  • 176
-1
votes
1 answer

How to use CATextLayer together with NSMutableAttributedString

I try to use a CATextLayer together with a NSMutableAttributedString. Once I set the string property of my CATextLayer to an NSMutableAttributedString it gets automatically replaced by an immutable NSAttributedString. I checked for the result of…
Max
  • 2,699
  • 2
  • 27
  • 50
-1
votes
3 answers

Remove special characters in NSMutableAttributedString

In my app to show text in CATextLayer(change colors for characters),using NSMutableAttributedString to change colors,i want remove special characters in NSMutableAttributedString to show PopUp view, but didn't know how to remove special characters,…
NANNAV
  • 4,875
  • 4
  • 32
  • 50
1 2 3
9
10