let this be the HTML
content
<span style=\134"color: rgb(173, 173, 173); font-family: titilliumtitle12regular; font-size: 16px; text-transform: none; float: none; display: inline !important;\134">testing purpose Matchboxx is the first social sporting application that gives full control to sports professionals and enthusiasts who desire to set-up, manage, participate or watch sports teams in any location around the world. This, coupled with a suite of social tools which provide users with ease-of-use sport event management, provides a unique and rewarding experience to users around the world. Join today and get started!Testing</span><br>
This thing worked for me,
loading HTML
content to NSAttributedString
NSString *htmlString = HTML_Content;
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithData: [htmlString dataUsingEncoding:NSUnicodeStringEncoding] options: @{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType} documentAttributes:nil error: nil];
Then Adding an attribute for UIFont
[attributedString addAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"nexabold" size:16.0],NSForegroundColorAttributeName:[UIColor blackColor]} range:NSMakeRange(0, attributedString.length)];
setting the UITextView
with Attributed Text
txtView.text = @"";
txtView.attributedText = attributedString;
txtView.textAlignment = NSTextAlignmentJustified;