Created
June 11, 2014 20:28
-
-
Save mwhuss/0ee5dea77370816bca97 to your computer and use it in GitHub Desktop.
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
extern NSString * const MWHHTMLViewLinkAttributeName; | |
@interface MWHHTMLView : UIView | |
@property (nonatomic, copy) NSString *html; | |
@property (nonatomic, copy) NSAttributedString *attributedText; | |
@property (nonatomic, strong) UIFont *font; | |
@property (nonatomic, strong) UIColor *textColor; | |
@property (nonatomic, strong) UIColor *linkColor; | |
@property (nonatomic, assign) NSUnderlineStyle underlineStyle; | |
@property (nonatomic, assign) NSLineBreakMode *lineBreakMode; | |
@property (nonatomic, assign) CGFloat tabInterval; | |
@property (nonatomic, assign) CGFloat paragraphSpacingBefore; | |
@property (nonatomic, assign) CGFloat paragraphLineSpacing; | |
@property (nonatomic, readonly) NSString *serializedCSS; | |
@property (nonatomic, assign) CGFloat preferredMaxLayoutWidth; | |
@property (nonatomic, copy) void (^linkHandler)(NSURL *url); | |
- (NSMutableAttributedString *)attributedStringForHTML:(NSString *)html; | |
- (void)setValue:(NSString *)value property:(NSString *)property selector:(NSString *)selector; | |
- (void)clearCSS; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment