Displaying PowerPoint Slides in Objective-C

杀马特。学长 韩版系。学妹 提交于 2019-12-11 10:21:11

问题


I would like to ask if it is possible to display PowerPoint through either TableViewController or UIButton instead of using a UIWebView?

The PowerPoint Slides are being stored in a folder in Xcode.


回答1:


I don't know what you're envisaging with a UIButton, that makes very little sense to me, but you can of course put a UIWebView in a table cell. I assume that's not what you want?

You're probably best off pre-processing the PowerPoint files on a back-end server to convert them to PDFs. (or as part of your build process, if they're static) You have a lot more options for displaying those on iOS.




回答2:


There are more ways of what you can do. You could of course use the

Quick Look Framework to display the ppt even without converting it to pdf. Also the UIWebView should be capable of presenting your ppt without the need to convert it.

The problem with these solutions is that you will lose all animations in your presentation. The only solution I know that wont destroy your animations is to either export your presentation directly as HMTL file or to use programs such as PPTToHTML5Converter to convert your ppt to an HTML5 file and show that in your UIWebView.

I hope I could help.



来源:https://stackoverflow.com/questions/12051976/displaying-powerpoint-slides-in-objective-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!