catextlayer Questions
3
When I add a UILabel with text to a UIView and then scale the UIView, the contents is displayed with pixelation. The greater the scale factor, the greater the pixelation.
I understand using a CATe...
Pasticcio asked 10/10, 2017 at 2:26
4
I have a problem with CATextlayer. I set wrapped == YES for CATextlayer and it auto set multi line for this. But the line spacing is very small and look it verry bad.
Is there any way to set line s...
Patrilineage asked 22/7, 2013 at 4:12
2
Solved
I'm trying to reduce the quality of a message before its being sent, for example if the connect is poor I want to blur out the text in the UITextView and if connection improves or internet comes ba...
Lewan asked 17/12, 2019 at 10:30
1
I would like to add text, whether it be a UILabel or CATextLayer to a CGPath. I realize that the math behind this feature is fairly complicated but wondering if Apple provides this feature out of t...
Opine asked 5/12, 2019 at 23:56
4
Solved
All my research so far seems to indicate it is not possible to do this accurately. The only two options available to me at the outset were:
a) Using a Layout manager for the CATextLayer - not avai...
Stegodon asked 1/6, 2011 at 8:7
2
I have a CATextLayer with multiline Text.
The wrapped option is set to YES. But it doesn't wrap the text on the last line.
If I add another line with \n and a space, the wrapping occurs (but this ...
Gilburt asked 21/9, 2015 at 22:7
4
Solved
I have a CATextlayer of a certain size and NSAttributedString text of unknown length.
I need to adjust the font-size so the text fits the frame (not vice versa :)
Any ideas where to start? :)
[E...
Restraint asked 15/6, 2012 at 22:44
3
Solved
I have a problem with CATextLayer cleaning.
and with iOS the solution is:
textLayer.contentsScale = UIScreen.mainScreen.scale
But I can't found "scale" property on cocoa NSScreen
Note: Answer w...
Pyrosis asked 3/7, 2015 at 2:36
2
Solved
I want to change the text color of a CATextLayer.
This does not work
myTextLayer.textColor
since there is no such property. I also got no response by setting the foreground color
textLayer.fo...
Retarder asked 8/8, 2016 at 17:22
5
I create UILabel and CATextLayer in my app using following code
- (void)viewDidLoad
{
[super viewDidLoad];
self.textLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 90, 20, 20)];
self.text...
Southward asked 8/8, 2013 at 9:6
4
Solved
EDIT: The strangest thing: it seems that when running this code from a full app everything works, but I was always running the creation of the movie from my unit tests, and only there it didn't wor...
Pursuer asked 23/4, 2012 at 13:50
1
I have an app that allows a user to record a video in a mutable composition. I'd like to set some text that will come up and then change at an interval that I set when the user plays it back after ...
Intellectuality asked 14/6, 2012 at 2:42
1
Solved
When I use UILabel, I set the system font as:
label.font = UIFont.systemFontOfSize(18, weight: UIFontWeightMedium)
Now I try to use CATextLayer and I searched online and found out that the syste...
Battleax asked 18/2, 2016 at 2:44
1
Solved
For UILabel, I can set the system font as:
label.font = UIFont.systemFontOfSize(18, weight: UIFontWeightMedium)
For CATextLayer, is there a similar way to set the system font instead of giving t...
Abductor asked 18/2, 2016 at 1:42
1
Solved
I would like to create an overlay of text to my images. The problem is, if ill try to add a second text, like a subtitle it ignores my font-size.
titleLayer.frame = CGRectMake(0, 80, imageView.bo...
Heteromorphic asked 25/6, 2015 at 9:5
3
Solved
I am trying to add a CATextLayer to UITableViewCell. Problem is that text is rendering as black while I have already set its foregroundColor. Can someone tell me what I am missing? Thanks.
CATextL...
Mcgaha asked 2/5, 2013 at 6:2
5
Solved
Background: I started my project in iOS 5 and built out a beautiful button with layer. I added a textLayer onto the button and center it using the following code:
float textLayerVerticlePadding ...
Discriminative asked 24/9, 2012 at 14:54
1
Solved
I want to have some text with a custom line-spacing, so I wrote an attribute string with CTParagraphStyleAttributte and pass it to my CATextLayer:
UIFont *font = [UIFont systemFontOfSize:20];
CTFo...
Songer asked 9/4, 2012 at 9:15
2
Solved
I am adding text incrementally to a wrapping CATextLayer in a UIScrollView. Each time I add text, I need to add height to the textLayer and to the scrollView’s contentSize, and adjust the scrollVie...
Averroism asked 29/3, 2012 at 15:38
1
If I set textLayer.wrapped = YES, how do I resize textLayer to contain the wrapped text? I.e., how do I get the new height of the textLayer?
Basically, I want something like -[UILabel sizeToFit].
...
Vetiver asked 21/11, 2011 at 22:44
1
Solved
I am using CATextLayer , in order to using a custom font in iOS , I know there is simple way to using custom font with Fonts provided by application but this is different font . I was wondering is ...
Antichrist asked 4/9, 2011 at 12:46
1
© 2022 - 2025 — McMap. All rights reserved.