Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (33 sloc) 1.188 kB
f3d43b6 @soffes The Great Rename
soffes authored
1 //
2 // SSLabel.h
3 // SSToolkit
4 //
5 // Created by Sam Soffes on 7/12/10.
e8c3ce3 @soffes Updated comments and renamed SSDrawingMacros to SSDrawingUtilities
soffes authored
6 // Copyright 2010-2011 Sam Soffes. All rights reserved.
f3d43b6 @soffes The Great Rename
soffes authored
7 //
8
f63bf11 @soffes More documentation
soffes authored
9 /**
10 The vertical alignment of text within a label.
11 */
f3d43b6 @soffes The Great Rename
soffes authored
12 typedef enum {
f63bf11 @soffes More documentation
soffes authored
13 /** Aligns the text vertically at the top in the label (the default). */
f3d43b6 @soffes The Great Rename
soffes authored
14 SSLabelVerticalTextAlignmentTop = UIControlContentVerticalAlignmentTop,
f63bf11 @soffes More documentation
soffes authored
15
16 /** Aligns the text vertically in the center of the label. */
7bb2691 @soffes * Removed SSKeychain
soffes authored
17 SSLabelVerticalTextAlignmentMiddle = UIControlContentVerticalAlignmentCenter,
f63bf11 @soffes More documentation
soffes authored
18
19 /** Aligns the text vertically at the bottom in the label. */
f3d43b6 @soffes The Great Rename
soffes authored
20 SSLabelVerticalTextAlignmentBottom = UIControlContentVerticalAlignmentBottom
21 } SSLabelVerticalTextAlignment;
22
072f882 @soffes More documentation. #24 #25
soffes authored
23 /**
24 Simple label subclass that adds the ability to align your text to the top or bottom.
25 */
454e654 @soffes Require Apple LLVM compiler 3.0
soffes authored
26 @interface SSLabel : UILabel
f3d43b6 @soffes The Great Rename
soffes authored
27
072f882 @soffes More documentation. #24 #25
soffes authored
28 /**
29 The vertical text alignment of the receiver.
7bb2691 @soffes * Removed SSKeychain
soffes authored
30
bf2d0ec @soffes Started overhauling documentation
soffes authored
31 The default is `SSLabelVerticalTextAlignmentMiddle` to match `UILabel`.
7bb2691 @soffes * Removed SSKeychain
soffes authored
32 */
f3d43b6 @soffes The Great Rename
soffes authored
33 @property (nonatomic, assign) SSLabelVerticalTextAlignment verticalTextAlignment;
7bb2691 @soffes * Removed SSKeychain
soffes authored
34
072f882 @soffes More documentation. #24 #25
soffes authored
35 /**
36 The edge insets of the text.
7bb2691 @soffes * Removed SSKeychain
soffes authored
37
bf2d0ec @soffes Started overhauling documentation
soffes authored
38 The default is `UIEdgeInsetsZero` so it behaves like `UILabel` by default.
7bb2691 @soffes * Removed SSKeychain
soffes authored
39 */
40 @property (nonatomic, assign) UIEdgeInsets textEdgeInsets;
f3d43b6 @soffes The Great Rename
soffes authored
41
42 @end
Something went wrong with that request. Please try again.