Skip to content

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

License

Notifications You must be signed in to change notification settings

control/IPInsetLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPInsetLabel

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

[![CI Status](http://img.shields.io/travis/Charles Phillips/IPInsetLabel.svg?style=flat)](https://travis-ci.org/Charles Phillips/IPInsetLabel) Version License Platform

Usage

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

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 @soffes @doublerebel

License

Copyright 2011 Instapaper LLC, released to the public domain.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •