Linked Questions
14 questions linked to/from How to control the line spacing in UILabel
2 votes
2 answers
6k views
How to reduce a space between two lines in multiline UILabel in iphone [duplicate]
Possible Duplicate: How to control the line spacing in UILabel I want to reduce a space between two lines in multiline UILabel in iPhone, how I can achieve this, It is very critical thing I want ...
124 votes
13 answers
168k views
How to Increase Line spacing in UILabel in Swift
I have a label which has few lines of text and I want to increase the spacing between the lines. There are similar questions asked by others but the solutions don't solve my problems. Also my label ...
104 votes
10 answers
105k views
Set UILabel line spacing
How can I modify the gap between lines (line spacing) in a multiline UILabel?
65 votes
10 answers
79k views
Core Text - NSAttributedString line height done right?
I'm completely in the dark with Core Text's line spacing. I'm using NSAttributedString and I specify the following attributes on it: - kCTFontAttributeName - kCTParagraphStyleAttributeName From this ...
5 votes
4 answers
7k views
UILabel Line Spacing
I am trying to set the line spacing in a UILabel as specified by Mike Slutsky here. It works correctly for the text I specify from the Storyboard. When I try to set the UILabel.text in code, it ...
5 votes
2 answers
7k views
How to increase spacing between lines in UITextView
How to increase spacing between lines in UITextView? I wish to use default system font,i.e., Helvetica with size 15.
4 votes
3 answers
2k views
Multiline UILabel height increases even when the text is one line long
I am using a UILabel within a tableViewCell. Some of the cells have texts that are one line, and some 2 lines. I have set the trailing space, leading space and top space from superview constraints to ...
3 votes
1 answer
1k views
CATextLayer Render AttributedString with truncation and paragraph style
I am trying to create a custom label that has animatable properties so I decided to use CATextLayer instead of going straight to CoreText.. I came up with the following code (I used playground to test ...
0 votes
1 answer
887 views
Line Spacing in xcode/swift Label and TextView
My question is related to solving a problem and also to improve my understanding of swift. I have a UILabel and a TextView. I have the same size font in both. However, in the TextView I am using ...
1 vote
1 answer
516 views
Display text vertically in Swift?
Before I begin, I have visited How to align text inside textView vertically? and How can you rotate text for UIButton and UILabel in Swift? and many other places, but none of the answers outlined in ...
0 votes
2 answers
427 views
Swift label not updating frame due change of font size
currently, I am creating a table view that contains an imageView as main UI item inside the cell and on top op that there is a label. Now I'm facing an issue where for long text, the frame of the ...
0 votes
1 answer
364 views
textview cursor position changed after horizontal line
I want to change the cursor position in TextView... // NoteView objective _c class its super class is TextView... #import "NoteView.h" @implementation NoteView - (id)initWithFrame:(...
0 votes
0 answers
216 views
changing line height of UILabel not working with auto line count Xcode?
I am assigning lines to 0 to make the lines count automatic with UILabel in a tablecellview and I also want to increase the line height so it could look nicely and I found this solution But it did ...
-2 votes
1 answer
103 views
Line Spacing Using User Define Runtime Attributes
Is there any ways to adjust line spacing in user define runtime attributes? I wouldn't like to use title->attributed->line and that doesn't work for custom fonts when I don't install custom fonts in ...