【问题标题】:how to show ppt slideshow in iphone?如何在iphone中显示ppt幻灯片?
【发布时间】:2011-12-25 03:33:24
【问题描述】:

我想在 iphone 中显示 power point 演示文稿。

这可能吗?因为我想以幻灯片的方式展示它。

但是我可以在 webView 中显示 ppt。但它是垂直的。

我想如果我将所有 ppt 转换为图像,然后将图像显示到滚动条中,但我不知道这是否可能。

所以如果有人对此有所了解。请在这里分享

编辑..

我正在使用 UIDocumentInteractionController 但我看不到 ppt .. 这是代码 ..

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];  

【问题讨论】:

  • 您可以按照您的描述进行操作,或者实现文档加载的简单方法是使用 UIDocumentInteractionController。
  • UIDocumentInteractionController 允许我查看幻灯片吗?
  • 只需将幻灯片通过电子邮件发送/复制到您的手机(通过电子邮件发送给自己),然后打开附件。 (假设您没有任何其他文档查看器/编辑器应用程序)它的打开方式将使用 Apple 的默认 UIDocumentInteractionController - 您可以逐张滚动幻灯片,它会旋转并允许缩放/打印等。
  • 嘿..卢克我正在尝试..我已经使用了上面提到的代码,但我仍然无法从应用程序中打开 ppt..我也宣布了委托
  • 需要实现委托方法:documentInteractionControllerViewControllerForPreview。您可以在这里看到它的实际效果:stackoverflow.com/questions/6152764/… 或在线查看课程参考文档。

标签: iphone powerpoint slideshow


【解决方案1】:

您可以编写一些完全按照您描述的功能,或者考虑使用 Apple 自己的 UIDocumentInteractionController

一定要实现委托方法:

(UIViewController*)documentInteractionControllerViewControllerForPreview: (UIDocumentInteractionController*)controller

...这将返回要推送文档控制器的视图控制器。

您可能还会发现我的一个老问题中的一些代码很有帮助:

UIDocumentInteractionController crashing upon exit

【讨论】:

    猜你喜欢
    • 2023-02-10
    • 2011-02-27
    • 1970-01-01
    • 1970-01-01
    • 2010-12-03
    • 1970-01-01
    • 2023-03-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多