forked from Cocoanetics/DTCoreText
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNSMutableAttributedString+HTML.h
More file actions
36 lines (28 loc) · 1.15 KB
/
Copy pathNSMutableAttributedString+HTML.h
File metadata and controls
36 lines (28 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// NSMutableAttributedString+HTML.h
// CoreTextExtensions
//
// Created by Oliver Drobnik on 4/14/11.
// Copyright 2011 Drobnik.com. All rights reserved.
//
@class DTCoreTextParagraphStyle, DTCoreTextFontDescriptor;
/**
Methods for appending `NSString` instances to mutable attributed strings
*/
@interface NSMutableAttributedString (HTML)
/**
Appends a string with the same attributes as this string to this string.
@param string The string to be appended to this string. */
- (void)appendString:(NSString *)string;
/**
Appends a string with a given paragraph style and font to this string.
@param string The string to be appended to this string.
@param paragraphStyle Paragraph style to be attributed to the appended string.
@param fontDescriptor Font descriptor to be attributed to the appended string. */
- (void)appendString:(NSString *)string withParagraphStyle:(DTCoreTextParagraphStyle *)paragraphStyle fontDescriptor:(DTCoreTextFontDescriptor *)fontDescriptor;
/**
Appends a string without any attributes.
@param string The string to be appended to this string without any attributes.
*/
- (void)appendNakedString:(NSString *)string;
@end