Download and format rtf file in UIWebView

I am trying to load the contents of an rtf file into a UIWebView. I am loading content successfully, but it is unformatted. fonts are too large and have no format. it displays the color of the rtf content, but not the font or size. So what should I do now. is there any other way to download rtf and format it? I load rtf as follows:

NSString *path = [[NSBundle mainBundle] pathForResource:@"Home" ofType:@"rtf"];
NSURL *url=[NSURL fileURLWithPath:path];
NSURLRequest *req=[NSURLRequest requestWithURL:url];
[menuWeb loadRequest:req];

So what should I do now?

+3
source share
2 answers

Use HTML instead, this is the only way to get the necessary control.

+1
source

http://cutesoft.net/example/editRTF.aspx

HTML WYSIWYG. HTML (*), . HTML Xcode. !

(*), ... , HTML- - , .

0

Source: https://habr.com/ru/post/1749916/


All Articles