TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Custom |
ReleasedLast Release | Dec 2014 |
Maintained by Charles Phillips.
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
self.insetLabel.insets = UIEdgeInsetsMake(8, 16, 12, 16); // top, left, bottom, right
self.insetLabel.verticalTextAlignment = UIControlContentVerticalAlignmentBottom;
@marcoarment @jeebster @bomalley @danomatika @soffes @doublerebel
Copyright 2011 Instapaper LLC, released to the public domain.