Tutorial by Examples

NSString * htmlString = @"<html><body> <b> Example bold text in HTML </b> </body></html>"; NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[htmlString dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAt...
The first step you need to preform is to create a NSMutableAttributedString object. The reason we create a NSMutableAttributedString instead of NSAttributedString is because it enables us to append string to it. NSString *fullStr = @"Hello World!"; NSMutableAttributedString *attString =[...

Page 1 of 1