Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (31 sloc) 1.01 KB
// SSLabel.h
// SSToolkit
// Created by Sam Soffes on 7/12/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
typedef enum {
SSLabelVerticalTextAlignmentTop = UIControlContentVerticalAlignmentTop,
SSLabelVerticalTextAlignmentMiddle = UIControlContentVerticalAlignmentCenter,
SSLabelVerticalTextAlignmentBottom = UIControlContentVerticalAlignmentBottom
} SSLabelVerticalTextAlignment;
@brief Simple label subclass that adds the ability to align your text
to the top or bottom.
@interface SSLabel : UILabel {
SSLabelVerticalTextAlignment _verticalTextAlignment;
UIEdgeInsets _textEdgeInsets;
@brief The vertical text alignment of the receiver.
The default is SSLabelVerticalTextAlignmentMiddle to match UILabel.
@property (nonatomic, assign) SSLabelVerticalTextAlignment verticalTextAlignment;
@brief The edge insets of the text.
The default is UIEdgeInsetsZero so it behaves like UILabel by default.
@property (nonatomic, assign) UIEdgeInsets textEdgeInsets;
Jump to Line
Something went wrong with that request. Please try again.