A simple UILabel subclass that adds padding insets and auto-height-resizing

From https://gist.github.com/marcoarment/2596057

With modifications from comments

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

Usage

self.insetLabel.insets = UIEdgeInsetsMake(0, 0, 0, 0);

Requirements

Installation

IPInsetLabel is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "IPInsetLabel"

Author

@marcoarment @jeebster @bomalley @danomatika @doublerebel

License

Copyright 2011 Instapaper LLC, released to the public domain.