Linked Questions

2 votes
2 answers
6k views

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 ...
user196320's user avatar
124 votes
13 answers
168k views

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 ...
Sneha's user avatar
  • 2,212
104 votes
10 answers
105k views

How can I modify the gap between lines (line spacing) in a multiline UILabel?
Matrix's user avatar
  • 7,621
65 votes
10 answers
79k views

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 ...
Schoob's user avatar
  • 1,698
5 votes
4 answers
7k views

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 ...
Robert's user avatar
  • 1,579
5 votes
2 answers
7k views

How to increase spacing between lines in UITextView? I wish to use default system font,i.e., Helvetica with size 15.
nitz19arg's user avatar
  • 427
4 votes
3 answers
2k views

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 ...
Shanti K's user avatar
  • 2,908
3 votes
1 answer
1k views

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 ...
Brandon's user avatar
  • 23.6k
0 votes
1 answer
887 views

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 ...
jz_'s user avatar
  • 358
1 vote
1 answer
516 views

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 ...
user avatar
0 votes
2 answers
427 views

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 ...
RM_iOS_DEv's user avatar
0 votes
1 answer
364 views

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:(...
user1997077's user avatar
0 votes
0 answers
216 views

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 ...
armnotstrong's user avatar
  • 9,185
-2 votes
1 answer
103 views

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 ...
Por's user avatar
  • 423