Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.0.1
Fetching contributors…

Cannot retrieve contributors at this time

file 42 lines (33 sloc) 1.188 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
//
// SSLabel.h
// SSToolkit
//
// Created by Sam Soffes on 7/12/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
//

/**
The vertical alignment of text within a label.
*/
typedef enum {
/** Aligns the text vertically at the top in the label (the default). */
SSLabelVerticalTextAlignmentTop = UIControlContentVerticalAlignmentTop,

/** Aligns the text vertically in the center of the label. */
SSLabelVerticalTextAlignmentMiddle = UIControlContentVerticalAlignmentCenter,

/** Aligns the text vertically at the bottom in the label. */
SSLabelVerticalTextAlignmentBottom = UIControlContentVerticalAlignmentBottom
} SSLabelVerticalTextAlignment;

/**
Simple label subclass that adds the ability to align your text to the top or bottom.
*/
@interface SSLabel : UILabel

/**
The vertical text alignment of the receiver.
The default is `SSLabelVerticalTextAlignmentMiddle` to match `UILabel`.
*/
@property (nonatomic, assign) SSLabelVerticalTextAlignment verticalTextAlignment;

/**
The edge insets of the text.
The default is `UIEdgeInsetsZero` so it behaves like `UILabel` by default.
*/
@property (nonatomic, assign) UIEdgeInsets textEdgeInsets;

@end
Something went wrong with that request. Please try again.