0

I've been trying to use the QLPreviewController but it's a little inflexible. It comes with a few extra buttons and some printing option. It's also not modifiable ios6+.

I'm trying to understand whether it's feasible to write my own previewer and if so, if anybody has any insights on how this can be done in an iOS view.

All I want is the ability to show a Microsoft word / excel / ppt, pdf, or maybe even a Google doc in an ios view.

guptha
  • 529
  • 1
  • 4
  • 9
samonderous
  • 649
  • 1
  • 10
  • 22

1 Answers1

0

You can actually display those bits in a UIWebView

NSString *path = [[NSBundle mainBundle] pathForResource:fileName ofType:extension];

NSURL *url = [NSURL fileURLWithPath:path];

[self.webView loadRequest:[NSURLRequest requestWithURL:url]];
Remover
  • 1,616
  • 1
  • 17
  • 27
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – Justin Wood Aug 21 '14 at 14:12
  • The question states "All I want is the ability to show a Microsoft word / excel / ppt, pdf, or maybe even a Google doc in an ios view". You can do that in a UIWebView. It will also allow you to do whatever else a normal view allows you to do such as overlay views, buttons etc. if you need. That was my interpretation of the needs. – Remover Aug 21 '14 at 14:30
  • If you included an example of how to do such a thing, it would be an answer. As it stands, at < 10 words, it is a comment. – Justin Wood Aug 21 '14 at 14:33
  • Well, I thought it would be quite clear once you just check the docs on UIWebView... Have updated the 7 month late answer, anyway. – Remover Aug 21 '14 at 14:36
  • Even if you had linked to the docs, link only answers are still not considered to be answered. – Justin Wood Aug 21 '14 at 14:38