forked from Antondomashnev/ADTickerLabel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathADTickerLabel.h
More file actions
59 lines (46 loc) · 1.22 KB
/
ADTickerLabel.h
File metadata and controls
59 lines (46 loc) · 1.22 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// ADTickerLabel.h
// ADTickerLabel
//
// Created by Anton Domashnev on 28.05.13.
// Copyright (c) 2013 Anton Domashnev. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum{
ADTickerLabelScrollDirectionUp = 1,
ADTickerLabelScrollDirectionDown = 2
}ADTickerLabelScrollDirection;
@interface ADTickerLabel : UIView
@property (nonatomic, strong) UIFont *font;
@property (nonatomic, strong) UIColor *textColor;
/*
Default 8 px
*/
@property (nonatomic, unsafe_unretained) float characterWidth;
/*
Frame may have been changed after setting new text
*/
@property (nonatomic, strong) NSString *text;
/*
Change text animation duration in seconds
Default 1 seconds
*/
@property (nonatomic, unsafe_unretained) float changeTextAnimationDuration;
/*
Default ADTickerLabelScrollDirectionUp
*/
@property (nonatomic, unsafe_unretained) ADTickerLabelScrollDirection scrollDirection;
/*
Default nil
*/
@property (nonatomic, strong) UIColor *shadowColor;
/*
Default CGSizeMake(0, 0)
*/
@property (nonatomic, unsafe_unretained) CGSize shadowOffset;
/*
Default UITextAlignmentLeft
*/
@property (nonatomic, unsafe_unretained) UITextAlignment textAlignment;
- (void)setText:(NSString *)text animated:(BOOL)animated;
@end