2

I am beginner in Objective C and iOS. I have a doubt how can we open an excel sheet in our app. The question is that if i click on a button then excel sheet should be open.

4

3 回答 3

4

更新:

在 iOS 8 及更高版本中运行的应用程序中,使用 WKWebView 类而不是使用 UIWebView。

https://developer.apple.com/documentation/webkit/wkwebview

要添加到@rckoenes 答案,这些是受支持的文件格式UIWebview

Excel (.xls)

Keynote (.key.zip)

Numbers (.numbers.zip)

Pages (.pages.zip)

PDF (.pdf)

Powerpoint (.ppt)

Word (.doc)
Rich Text Format (.rtf)

Rich Text Format Directory (.rtfd.zip)

Keynote '09 (.key)

Numbers '09 (.numbers)

Pages '09 (.pages)

这是课程描述的链接UIWebView

于 2013-08-08T11:33:34.693 回答
2

只需在 webview 中加载 excel 表,这将加载 excel 表并且用户可以查看它。

于 2013-08-08T11:28:21.010 回答
2

您可以使用LibXLS打开 excel 工作表

我也在这里回答了类似的问题:

是否有任何 sdk 或工具包来处理 iOS 中的 microsoft office 格式?

于 2013-08-08T11:30:48.037 回答