【发布时间】:2009-12-09 03:57:43
【问题描述】:
知道如何在 Cocoa Touch 中读取 .ppt 文件吗?
我尝试在 UIWebView 中加载文件的内容,但没有成功。 这是代码:
[aWebView loadData:[NSData dataWithContentsOfFile:filePath]
MIMEType:@"application/vnd.ms-powerpoint"
textEncodingName:@"utf-8"
baseURL:[NSURL fileURLWithPath:filePath]];
[powerWeb loadData:[NSData dataWithContentsOfFile:filePath]
MIMEType:@"application/vnd.ms-powerpoint"
textEncodingName:@"utf-8"
baseURL:[NSURL fileURLWithPath:filePath]];
我们非常感谢所有建议。
谢谢
【问题讨论】:
-
可能是在发布此问题时,情况有所不同:尝试在 UIWebView 中加载外部文档的 atm 人员应检查(并投票...)对已接受答案的第一条评论亚历克斯·雷诺兹
标签: objective-c cocoa-touch uiwebview powerpoint