我正在构建一个包含PowerPoint演示文稿的iOS应用程序,这些演示文稿存储在服务器端。当用户从我的应用程序中选择演示文稿时,需要在PowerPoint iPad应用程序中打开。我使用PowerPoint iPad应用程序的URL方案传递所选演示文稿的URL。但是iPad中的PowerPoint总是显示:
"您要访问的服务器不受此版本的Office的支持。"
let urlString = "ms-powerpoint:https://kahanicloud.com/CustomPresentation/Download?id=58006a40775efb09d0200659&parentId=system-all-files&fileName=shared.pptx"
let DocUrl = URL(string: urlString)
let canOpen = UIApplication.shared.canOpenURL(DocUrl!)
if canOpen
{
UIApplication.shared.openURL(DocUrl!)
}
我尝试了上述快速代码来实现这一目标,但失败了。
您没有提供足够的参数来url架构。
ms-powerpoint:ofe|u|https://kahanicloud.com/CustomPresentation/Download?id=58006a40775efb09d0200659&parentId=system-all-files&fileName=shared.pptx|a|App
您可以从此处获取所需参数的更多详细信息