I'm new in iPhone, I'm trying to open .doc file in the UIWebView, I wrote the following code
NSString *urlAddress = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@.doc", docName] ofType:nil];
NSLog(@"in search the document url address: %@", urlAddress);
NSURL *url = [NSURL fileURLWithPath:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[_webView loadRequest:requestObj];
the application doesn't crash, but it gives me the following:
EXCEPTION CPMessageException: (null)
and loads a blank page
Any Help in this issue?