Created
September 16, 2014 20:26
-
-
Save HeidiHansen/e46af2ffb7e179893b4d to your computer and use it in GitHub Desktop.
09. THTextOverlay.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface THTextOverlay : UIView | |
@property (strong, nonatomic) NSString *imageText; | |
@property (nonatomic) CGFloat textSize; | |
@property (strong, nonatomic) UIFont *font; | |
@property (nonatomic) CGRect viewFrameToDrawIn; | |
@property (nonatomic) NSTextAlignment textAlignment; | |
-(instancetype)initWithImageText:(NSString *)imageText | |
Font:(UIFont *)font | |
FontSize:(CGFloat)textSize | |
TextAlignment:(NSTextAlignment)textAlignment | |
ForViewFrameToDrawIn:(CGRect)viewFrameToDrawIn; | |
-(UIImage *)imageFromText; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment