| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // CustomLabel.h
- // JasonDevelop
- //
- // Created by Jason Lee on 2013. 12. 10..
- // Copyright (c) jasondevelop. All rights reserved.
- //
- @import UIKit;
- typedef void(^CustomLabelTouchHandler)(id label);
- @interface CustomLabel : UILabel {
- }
- @property (weak, nonatomic) id value;
- @property (strong, nonatomic) CustomLabelTouchHandler touchHandler; // Use copy if not using ARC
- @property (strong, nonatomic) IBInspectable NSString *bgImageName;
- @property (assign, nonatomic) IBInspectable CGRect rectForCapBackground; //set with interfacebuilder
- - (void)setBold:(NSString *)text;
- - (void)setFontSize:(NSString *)text fontSize:(CGFloat)fontSize;
- - (void)setRedColor:(NSString *)text;
- - (void)setBlueColor:(NSString *)text;
- - (void)setColor:(UIColor *)color text:(NSString *)text;
- - (void)setUnderLine:(NSString *)text;
- - (void)setKern:(NSInteger)kern text:(NSString *)text;
- - (void)setLineSpacing:(CGFloat)lineSpacing;
- - (void)setLink:(NSString *)text;
- - (void)addTarget:(id)target action:(SEL)action;
- - (void)addTouchEventHandler:(CustomLabelTouchHandler)handler;
- - (void)addTouchEventHandlerWithLabel:(CustomLabelTouchHandler)handler;
- @end
- @interface CustomTopLabel : CustomLabel
- @end
|