Jean-Luc Godard
Jean-Luc Godard

Reputation: 1883

how to show ppt slideshow in iphone?

I want to show the power point presentation in iphone .

Is this possible ? because I want to show it in the slide show manner .

I however able to show ppt in the webView . but it is in the vertical manner .

I think if i convert all ppt into images and then show that images into scrollbar but i don't know if this is possible .

so if anyone have idea about this . please share here

Edit..

I am using UIDocumentInteractionController but I am unable to see the ppt .. this is the code ..

NSString * path = [[NSBundle mainBundle] pathForResource:@"Sun2" ofType:@"ppt"];

UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:path]];
docController.delegate = self;
[docController retain];
BOOL isValid = [docController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];  

Upvotes: 0

Views: 1360

Answers (1)

Luke
Luke

Reputation: 11476

You could write some functions that do exactly as you have described, or consider the use of Apple's own UIDocumentInteractionController.

Be sure to implement the delegate method:

(UIViewController*)documentInteractionControllerViewControllerForPreview: (UIDocumentInteractionController*)controller

... which will return the view controller that is to push the document controller.

You may also find some of the code in an old question of mine to be helpful:

UIDocumentInteractionController crashing upon exit

Upvotes: 1

Related Questions