Show .key (keynote) file on iphone

I have been provided with some basic files.

I need to add an application.

when I open any application, it should show this presentation in the application.

my questions:

  • Does ios support a keynote presentation?
  • if so, how to show them?

However, I checked this ...

but .. does not work

http://developer.apple.com/library/ios/#qa/qa1630/_index.html

Documentation

iWork '09 does not use the package format and should not be zipped.

To display supported documents in UIWebView, create NSURL as the file URL with the path to the document. Listing 1 shows the method that UIWebView uses to load a document from your application package.

Listing 1 Loading a document in a UIWebView.

-(void)loadDocument:(NSString*)documentName inView:(UIWebView*)webView { NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil]; NSURL *url = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView loadRequest:request]; } // Calling -loadDocument:inView: [self loadDocument:@"mydocument.rtfd.zip" inView:self.myWebview]; 
+4
source share
2 answers

You can open the keynote file in UIWEBVIEW as a local linked file or sitting on a server.

 NSString *urlAddress = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"key"]; NSURL *url = [NSURL URLWithString:urlAddress]; NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; [webView loadRequest:requestObj]; 

You can view Excel (.xls), Keynote (.key.zip), numbers (.numbers.zip), pages (.pages.zip), PDF (.pdf), Powerpoint (.ppt), Word (.doc) , Rich text format (.rtf), Rich Text Format Directory (.rtf.zip), Keynote '09 (.key), numbers '09 (.numbers) and pages '09 (.pages)

0
source

Alternatively, or even next to the preview function, you can give the user the opportunity to open the master record using any available and installed applications from the outside.
There is a good answer to the question requesting this function here: How to use "open in ..." for an iOS application?

0
source

Source: https://habr.com/ru/post/1382851/


All Articles