나는 당신에게 질문을하고 그것을 해결하는 것을 모른다. 이 시나리오를 설명하려고합니다.Monotouch : UIDocumentInteractionController, 문서보기 (pdf, word, Excel 등) 방법?
1) 내 iPad 앱이 웹 서버에 연결되어 문서를 다운로드 할 수 있습니다. 2) 다운로드가 완료되면 문서를 열 수 있습니다.
내 질문은 :
첫째, 아이 패드에서 스트림 (또는 뭔가 다른)을 다운로드 할 수 있습니다? 임시 파일로 저장해야합니까?
초, 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;
}
}