|
@@ -220,23 +220,26 @@
|
|
|
- (void)loadOtherDataFinished
|
|
|
{
|
|
|
HLog(@"\n\n\n\n\n\n\n\n没有处理 loadOtherDataFinished \n\n\n\n\n\n\n\n");
|
|
|
-// [[downloadManager shareInstance] DownloadFileDoneOneFileFun];
|
|
|
-//
|
|
|
-// NSString *fileName = [self.curDownloadFileModel getFileNameFun];
|
|
|
-// NSString*filePath = [cachesFileManager getFilePathWithName:fileName type:DownLoadFileType];
|
|
|
-//
|
|
|
-// if (![[NSFileManager defaultManager] fileExistsAtPath:filePath]){
|
|
|
-// HLog(@"没有找到文件:%@",fileName);
|
|
|
-// return;
|
|
|
-// }
|
|
|
-//
|
|
|
-// NSURL * fileURL = [NSURL fileURLWithPath:filePath];
|
|
|
-// UIDocumentPickerViewController *documentPickerVC = [[UIDocumentPickerViewController alloc] initWithURL:fileURL inMode:UIDocumentPickerModeExportToService];
|
|
|
-// // 设置代理
|
|
|
-// documentPickerVC.delegate = self;
|
|
|
-// // 设置模态弹出方式
|
|
|
-// documentPickerVC.modalPresentationStyle = UIModalPresentationFormSheet;
|
|
|
-// [self.navigationController presentViewController:documentPickerVC animated:YES completion:nil];
|
|
|
+ [[downloadManager shareInstance] DownloadFileDoneOneFileFun];
|
|
|
+
|
|
|
+ NSString *fileName = [self.curDownloadFileModel getFileNameFun];
|
|
|
+ NSString*filePath = [cachesFileManager getFilePathWithName:fileName type:DownLoadFileType];
|
|
|
+
|
|
|
+ if (![[NSFileManager defaultManager] fileExistsAtPath:filePath]){
|
|
|
+ HLog(@"没有找到文件:%@",fileName);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ NSURL * fileURL = [NSURL fileURLWithPath:filePath];
|
|
|
+ UIDocumentPickerViewController *documentPickerVC = [[UIDocumentPickerViewController alloc] initWithURL:fileURL inMode:UIDocumentPickerModeExportToService];
|
|
|
+ // 设置代理
|
|
|
+ documentPickerVC.delegate = self;
|
|
|
+ // 设置模态弹出方式
|
|
|
+ documentPickerVC.modalPresentationStyle = UIModalPresentationFormSheet;
|
|
|
+ [ksharedAppDelegate.mainTabBar presentViewController:documentPickerVC animated:YES completion:nil];
|
|
|
+
|
|
|
+ //[self.navigationController presentViewController:documentPickerVC animated:YES completion:nil];
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|