I'm trying to display the local .doc files in UIWebView from main bundle.
I added the following code to display in UIWebView.
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:[[NSBundle mainBundle] URLForResource:@"LocalDocument" withExtension:@"doc"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
[self.webView loadRequest:theRequest];
UIWebview displays the document correctly, But the problem is it doesn't display the text "Header
" in correct font size in iPhone.
In the word document I added the text "Header
" with font size 22
and description text with font size 14
.
In iPad it displays correctly
, but in iPhone it display both text in font size 14
.
Has anyone encountered this problem?