4
在iOS 6中,蘋果加入Mail.app打開密碼保護的Microsoft Office文檔的能力。這種功能是否以任何方式暴露給第三方開發人員?當我們嘗試使用UIWebView
打開這樣的文件,我們遇到了異常:CMTopExceptionDocumentIsEncrypted
。堆棧跟蹤看起來像這樣:iOS:有沒有辦法打開受密碼保護的Microsoft Office文檔?
0 MyTestApp 0x000025a0 start + 0,
1 OfficeImport 0x125ceb91 +[WMTop fillHTMLArchiveForOfficeData:fileName:xmlFlag:archiver:] + 603,
2 OfficeImport 0x125e6f3a OIPreviewFillHTMLForDocumentData + 93,
3 OfficeImport 0x125e6e48 OIPreviewProcessWithDataAndOptions + 154,
4 QuickLook 0x08a8b7d2 OIGenerateProgressivePreviewForData + 267,
5 QuickLook 0x08aafb1f -[QLBasePreviewParts computePreview] + 463,
6 QuickLook 0x08a8fabb -[QLPreviewParts computePreviewInThread] + 315,
7 Foundation 0x0078b0d5 -[NSThread main] + 76,
8 Foundation 0x0078b034 __NSThread__main__ + 1304,
9 libsystem_c.dylib 0x969a8557 _pthread_start + 344,
10 libsystem_c.dylib 0x96992cee thread_start + 34
有誰知道如何解決這個問題?