I have html file which i am loading through below code
NSURL *htmlString = [[NSBundle mainBundle]URLForResource: @"index2" withExtension:@"html"];
NSAttributedString *stringWithHTMLAttributes = [[NSAttributedString alloc] initWithFileURL:htmlString options:@{NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType} documentAttributes:nil error:nil];
UITextView *textView1 = [[UITextView alloc] initWithFrame:CGRectMake(20,20,self.view.frame.size.width,self.view.frame.size.height)];
textView1.attributedText=stringWithHTMLAttributes;
The problem here is that textview is not loading css file ,
does NSAttributedString
string support CSS ?
If yes then please help me how to do it
Thanks In advance :)