Created
August 4, 2015 21:22
-
-
Save isoiphone/1c3154917d3c76835281 to your computer and use it in GitHub Desktop.
wtf UITableViewCell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vertically expand label so hanging letters such as 'g' don't get clipped | |
override func layoutSubviews() { | |
super.layoutSubviews() | |
if let textLabel = textLabel { | |
textLabel.frame = CGRectInset(textLabel.frame, 0, -10) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment