| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // CustomLabel.h
- // JasonDevelop
- //
- // Created by Jason Lee on 2013. 12. 10..
- // Copyright (c) jasondevelop. All rights reserved.
- //
- @import UIKit;
- typedef void(^CustomLabelTouchHandler)(void);
- @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)setLink:(NSString *)text;
- - (void)addTarget:(id)target action:(SEL)action;
- - (void)addTouchEventHandler:(CustomLabelTouchHandler)handler;
- @end
- @interface CustomTopLabel : CustomLabel
- @end
|