Skip to content

Instantly share code, notes, and snippets.

@HeidiHansen
Created September 16, 2014 20:26
Show Gist options
  • Save HeidiHansen/e46af2ffb7e179893b4d to your computer and use it in GitHub Desktop.
Save HeidiHansen/e46af2ffb7e179893b4d to your computer and use it in GitHub Desktop.
09. THTextOverlay.h
#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