|
@@ -20,6 +20,7 @@
|
|
|
@property (nonatomic, strong) NSNumber *searchPathsSize;
|
|
@property (nonatomic, strong) NSNumber *searchPathsSize;
|
|
|
@property (nonatomic, strong) UISearchDisplayController *searchController;
|
|
@property (nonatomic, strong) UISearchDisplayController *searchController;
|
|
|
@property (nonatomic) NSOperationQueue *operationQueue;
|
|
@property (nonatomic) NSOperationQueue *operationQueue;
|
|
|
|
|
+@property (nonatomic, strong) UIDocumentInteractionController *documentController;
|
|
|
|
|
|
|
|
@end
|
|
@end
|
|
|
|
|
|
|
@@ -247,6 +248,7 @@
|
|
|
drillInViewController.title = [subpath lastPathComponent];
|
|
drillInViewController.title = [subpath lastPathComponent];
|
|
|
[self.navigationController pushViewController:drillInViewController animated:YES];
|
|
[self.navigationController pushViewController:drillInViewController animated:YES];
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ [self openFileController:fullPath];
|
|
|
[self.tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
[self.tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
@@ -254,4 +256,13 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+- (void)openFileController:(NSString *)fullPath
|
|
|
|
|
+{
|
|
|
|
|
+ UIDocumentInteractionController *controller = [UIDocumentInteractionController new];
|
|
|
|
|
+ controller.URL = [[NSURL alloc] initFileURLWithPath:fullPath];
|
|
|
|
|
+
|
|
|
|
|
+ [controller presentOptionsMenuFromRect:self.view.bounds inView:self.view animated:YES];
|
|
|
|
|
+ self.documentController = controller;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
@end
|
|
@end
|