-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathADTickerLabel.h
executable file
·50 lines (38 loc) · 1.04 KB
/
ADTickerLabel.h
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
//
// 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,
ADTickerLabelScrollDirectionDown
}ADTickerLabelScrollDirection;
@interface ADTickerLabel : UIView
@property (nonatomic, strong) UIFont *font;
@property (nonatomic, strong) IBInspectable UIColor *textColor;
/*
Default ADTickerLabelScrollDirectionUp
*/
@property (nonatomic, assign) ADTickerLabelScrollDirection scrollDirection;
/*
Default nil
*/
@property (nonatomic, strong) IBInspectable UIColor *shadowColor;
/*
Default CGSizeMake(0, 0)
*/
@property (nonatomic, assign) IBInspectable CGSize shadowOffset;
/*
Default UITextAlignmentLeft
*/
@property (nonatomic, assign) NSTextAlignment textAlignment;
/*
Default 1.0
*/
@property (nonatomic, assign) IBInspectable CGFloat animationDuration;
@property (nonatomic, copy) IBInspectable NSString *text;
-(void)setText:(NSString *)text animated:(BOOL)animated;
@end