I've got several UILabels with multiple lines of text, but the line spacing is larger than I would prefer. Is there any way to change this?
相关问题
- Xcode debugger displays incorrect values for varia
- Image loads in simulator but not device?
- importing files from other directories in xcode
- XCode Server: Opening import file for module '
- create tableview inside tableviewcell using swift
相关文章
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- “Storyboard.storyboard” could not be opened
- didBeginContact:(SKPhysicsContact *)contact not in
- Adding TapGestureRecognizer to UILabel in Swift
-
The file “
.app” couldn’t be opened becaus
Since iOS 6, Apple added
NSAttributedString
toUIKit
, making it possible to useNSParagraphStyle
to change the line spacing.To actually change it from NIB, please see souvickcse's answer.
hi this is a late reply but it may help some one line height can be change change the text from plain to attribute
Because I friggin hate using attributed text in interface builder (I always run into IB bugs), here is an extension to allow you to set line height multiple directly to a UILabel in interface builder