A simple UILabel subclass that adds padding insets, auto-height-resizing, and vertical alignment.

From https://gist.github.com/marcoarment/2596057 and @soffes/SAMLabel

With modifications from comments

Wrapped into a Cocoapod on GitHub for easy installation and collaborative sustainability

Usage

self.insetLabel.insets = UIEdgeInsetsMake(8, 16, 12, 16); // top, left, bottom, right
self.insetLabel.verticalTextAlignment = UIControlContentVerticalAlignmentBottom;

Requirements

Installation

Author

@marcoarment @jeebster @bomalley @danomatika @soffes @doublerebel

License

Copyright 2011 Instapaper LLC, released to the public domain.