title: show .key(keynote) file in iphone
body: <p>I am given some keynote files .</p>
  
  <p>I have to put along with an app .</p>
  
  <p>when I open any app it should show that keynote presentation in the app .</p>
  
  <p>my questions are ,</p>
  
  <ol>
  <li>Does ios supports keynote presentation? </li>
  <li>if yes, how to show them ?</li>
  </ol>
  
  <p>However I checked this out ...</p>
  
  <p>but.. not working </p>
  
  <p><a href="http://developer.apple.com/library/ios/#qa/qa1630/_index.html" rel="nofollow">http://developer.apple.com/library/ios/#qa/qa1630/_index.html</a></p>
  
  <p>iWork '09 documents do not use a package format and must not be ZIP compressed.</p>
  
  <p>To display supported documents in a UIWebView, create an NSURL as a file URL with the path to the document. Listing 1 demonstrates a method that uses a UIWebView to load a document from your application bundle.</p>
  
  <p>Listing 1  Loading a document into a UIWebView.</p>
  
  <pre><code> -(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];
  </code></pre>