1
我有一個問題給你,我不知道要解決它。我會盡力解釋這種情況。Monotouch:UIDocumentInteractionController,查看文檔(pdf,word,excel等)如何?
1)我的iPad應用程序連接到Web服務器,可以下載文件。 2)下載後,它可以打開文檔。
我的問題是:
首先,是它可以下載在iPad流(或別的東西)?我需要將它作爲臨時文件保存嗎?
秒,我該如何使用UIDocumentInteractionController來打開那個下載的文件?
預先感謝您。問候。
編輯:
它是如何可能更改標題的預覽文件的按鈕?默認情況下,有一個標題爲「完成」的按鈕。是否有可能更改其標題或將其替換爲另一個標題?
我正在使用的代碼如下:
public class UIDocumentInteractionControllerDelegateClass: UIDocumentInteractionControllerDelegate
public UIViewController FileViewController;
public UIDocumentInteractionControllerDelegateClass (UIViewController parent)
{
FileController = parent;
}
public override UIViewController ViewControllerForPreview (UIDocumentInteractionController controller)
{
return FileViewController;
}
public override UIView ViewForPreview (UIDocumentInteractionController controller)
{
return FileViewController.View;
}
}