Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

loading and formatting the rtf file in UIWebView

I am trying to load the contents of a rtf file in the UIWebView. I am successful in loading the contents, but it is unformatted. the fonts are too large and it doesn't have any 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 load the rtf and format it? I load the rtf in following way:

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?

like image 935
Jayshree Avatar asked Dec 08 '25 09:12

Jayshree


1 Answers

Use HTML instead, it's the only way you're going to get the control you want.

like image 128
Sneakyness Avatar answered Dec 10 '25 01:12

Sneakyness