I created a sample in which i imported a word(.docx)on to the uiwebview and displayed.I got the output but i don't want to display the horizontal scroll bar and the vertical scroll also working not properly i can see the black space behind the webview when i scroll it vertically. Here is my code:
import
@interface userguideLinesNewViewController : UIViewController { IBOutlet UIWebView *webView; } @property (nonatomic,retain) UIWebView webView; -(void)loadDocument:(NSString)documentName inView:(UIWebView*)webViews; @end
import "userguideLinesNewViewController.h"
@implementation userguideLinesNewViewController @synthesize webView; -(void)loadDocument:(NSString*)documentName inView:(UIWebView*)webViews {
NSString *path = [[NSBundle mainBundle] pathForResource:@"BTBP CLARITY SKIN ADVISORuser.docx" ofType:nil]; NSURL *url = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webViews loadRequest:request]; } - (void)viewDidLoad { [super viewDidLoad]; [self loadDocument:@"BTBP CLARITY SKIN ADVISORuser.docx" inView:self.webView]; }