Latest 1.3.0
Homepage https://github.com/doublerebel/IPInsetLabel
License Public Domain
Platforms ios 7.0, requires ARC
Authors

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.

Latest podspec

{
    "name": "IPInsetLabel",
    "version": "1.3.0",
    "summary": "A simple UILabel subclass that adds padding insets, auto-height-resizing, and vertical alignment.",
    "description": "                      IPInsetLabel is a simple UILabel subclass that adds padding insets, auto-height-resizing,n                      and vertical alignment.  Originally a gist, now packaged into a Cocoapod to stayn                      updated.n",
    "homepage": "https://github.com/doublerebel/IPInsetLabel",
    "license": "Public Domain",
    "authors": {
        "Charles Phillips": "[email protected]"
    },
    "source": {
        "git": "https://github.com/doublerebel/IPInsetLabel.git",
        "tag": "1.3.0"
    },
    "social_media_url": "https://twitter.com/doublerebel",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resource_bundles": {
        "IPInsetLabel": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This