uilabel Questions
4
I have a label with multiple lines, lineBreakMode is set to UILineBreakModeWordWrap. How can I determine width of last line?
6
I'm creating a UILabel to which I set the background color and corner radius with the following code:
self.scoreLabel.backgroundColor = [UIColor DISRed];// custom red`
self.scoreLabel.layer.masksT...
Nauseating asked 11/4, 2015 at 0:0
3
I am displaying html string into attributed text if UILabel but few of the tags are not working in UILabel like
lineLabel.numberOfLines=0;
NSString* html = self.offerArray[0][@"description"];
NS...
Mackler asked 4/4, 2016 at 7:27
8
Solved
I need to enable word wrapping and tail truncation, at the same time, on a UIButton's titleLabel. Setting numberOfLines to something more than 0 doesn't work, the text stays on one line.
I've alre...
2
Solved
I have a UILabel with adjustsFontSizeToFitWidth set to YES and as expected it shrinks the font displayed on screen when the text is too large to be drawn at the size of the font property.
I have a...
5
Solved
When myLabel.adjustsFontSizeToFitWidth = YES, UILabel will adjust the font size automatically in case the text is too long for the label. For example, if my label is just 100px wide, and my text is...
Shool asked 7/3, 2010 at 15:13
8
Solved
I am working on a Swift project with Storyboards where I want text to wrap in a label. In the old Objective-C version where I did not use a Storyboard I used the following settings and things worke...
Fitts asked 25/5, 2015 at 22:56
3
Is there anything like the UILabel's adjustsFontSizeToFitWidth that can be used with a NSTextField?
Plow asked 21/12, 2010 at 19:51
13
I'm trying to use a Helvetica Neue Condensed font which I got from the Adobe Font Collection Pro Package. Unfortunately, it seems to draw incorrectly when I use it within a UILabel.
The line heigh...
4
Solved
Can we not convert NSMutableAttributedString to NSString?
I have two NSMutableAttributedStrings and I am appending the 2nd string onto 1st as below:
[string1 appendAttributedString:string2];
Sin...
Gilt asked 11/10, 2013 at 3:44
21
Solved
label.font.pointSize is read-only, so I'm not sure how to change it.
Plaque asked 23/6, 2014 at 0:4
4
I have a UILabel set with a font of system bold 14.0, a minimum font size of 12.
I want the label to fill 7 lines, and if it's too big, shrink the text down to 12 pixels, in which case it might be ...
4
Solved
Is there a way to auto size a UILabel? given size 40 x 40 the text font size would adjust based on the number of characters.
Luong asked 14/7, 2010 at 7:53
5
Solved
I have a UILabel that contains text that is bigger than the label size. (The UILabel has 2 lines.)
The UILabel is showing the three dots (ellipsis) on iOS. I do not want label to show this dots. H...
3
Solved
How can I underline partial text of UILabel using only storyboard? I am able to do this in code and I'm able to underline the entire text of a label, but not just one or two words in the string.
Hoodlum asked 1/2, 2015 at 21:21
3
Solved
I need to use the iOS's system font "Hiragino Sans W3" in my app, but no matter which size/style or the UILabel's dimensions I choose, the font's ascenders and descenders always appear clipped:
...
15
Solved
Is there a way to animate the text displayed by UILabel. I want it to show the text value character by character.
Help me with this folks
2
Solved
I was using ActiveLabel as third party library to make link in a label for particular words.The code works fine for Swift 3 & 3.2. but does not work for swift 4.
Below code i used
let custom...
10
Solved
I am trying to vertically align the text in the UILabel view of my app. The problem is that I want the text to be vertically aligned to the top and the size of the label to be 280 x 150. I am only ...
7
Solved
How can I make an underlined text in UILabel?
I had tried by making a UILabel with height 0.5f and place it under the text. This line label is not visible when I am running my app in iPhone 4.3 an...
Dichloride asked 29/10, 2012 at 13:1
2
Solved
Given a UILabel and a NSString, how do I determine how much of the string can fit inside the UILabel? I am using Xcode-5 and iOS-7.
I have been trying to see what I can extract from the thread Cal...
Hardshell asked 7/8, 2014 at 22:52
1
I'm trying to achieve something exactly like this:
I've found a few questions related to mine:
How to set the colors in glowing effect of a UILabel?
IPhone Text Glow Effect
Create glowing text...
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
3
Solved
I have a horizontal UIStackView which has two UILabel in it. First UILabel is multiline (two line) and other one is one line only. They both have default content compression and resistance prioriti...
Highgrade asked 27/11, 2019 at 6:22
6
Solved
I'm trying hard to find a way to simply add an outline/stroke/contour to my UILabel text. Talking about a stroke around the letters of the text not around the background of a UILabel.
I'm using sw...
© 2022 - 2024 — McMap. All rights reserved.