Skip to content

Instantly share code, notes, and snippets.

@mwhuss
Created June 11, 2014 20:28
Show Gist options
  • Save mwhuss/0ee5dea77370816bca97 to your computer and use it in GitHub Desktop.
Save mwhuss/0ee5dea77370816bca97 to your computer and use it in GitHub Desktop.
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