loading and formating the rtf file in uiwebview

Posted by Jayshree on Stack Overflow See other posts from Stack Overflow or by Jayshree
Published on 2010-06-14T11:04:44Z Indexed on 2010/06/15 11:12 UTC
Read the original article Hit count: 416

Filed under:
|
|
|

Hello everybody. 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 doesnt 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 anyother 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. can anybody help me????

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk