从iOS应用程序集成Office
我们希望我们的应用程序能够在Excel应用程序中打开Excel文档进行编辑,然后在返回到我们的应用程序时能够返回并查看更改。
我一直无法使它与OneDrive或SharePoint链接一起工作,虽然它说这是可能的在这个页面上:
https://msdn.microsoft.com/en-us/library/office/dn911482.aspx
我以某种方式误解了这个?
在Excel iOS应用程序中打开文档
类似于设置mimetypes。 您可以使用UIDocumentInteractionController
类在iOS上执行此UIDocumentInteractionController
。
Developer.apple.com文档
教程
在您的应用程序中获取文档的内容
正如另一位评论者所build议的,为此打击Microsoft Graph API:
[[[[[graphClient me] drive] items:<item_id>] request] getWithCompletion:^(MSGraphDriveItem *item, NSError *error){ //Returns a MSGraphDriveItem object or an error if there was one. }];
https://github.com/microsoftgraph/msgraph-sdk-ios/blob/master/docs/items.md#get-an-item