How to display the content of MS Office 2007/2010 files on iPad?
-
26-09-2019 - |
문제
How can we display the content of MS Office 2007/2010 files (specially .docx) in iOS 3.2 (ipad)?
해결책
using this code snippet :
NSString *path = [[NSBundle mainBundle] pathForResource:resourcePath ofType:nil];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
ironically I found that the UIWebView is capable of viewing these types but only on the iPad physically, it will not view the files in the simulator.
제휴하지 않습니다 StackOverflow