Latest 2.0.4
Homepage https://github.com/iodefog/SendSandBoxFile
License MIT
Platforms ios 5.0
Authors

遍历沙盒目录下文件,如果是非文件夹。
可以直接查看文本,可以使用airDrop发送到其他App,或者发送邮件

由于iOS 10 不能使用itools等工具导出沙盒里的文件,所以做了一个页面,利用邮件发送沙盒里的文件。对于程序的调试及文件的处理情况进行更好的了解。


pod

   pod 'SandBoxFileList'
   pod install

使用方法

    FileListTableViewController *fileListVC = [[FileListTableViewController alloc] init];
    [self.navigationController pushViewController:fileListVC animated:YES];

或者

    FileListTableViewController *fileListVC = [[FileListTableViewController alloc] init];
    [self presentViewController:fileListVC animated:YES completion:nil];

如果需要指定起始在某个文件夹下,则:

    FileListTableViewController *fileListVC = [[FileListTableViewController alloc] init];

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentPath = [paths firstObject];
    fileListVC.directoryStr = documentPath;

    [self.navigationController pushViewController:fileListVC animated:YES];

或者

    FileListTableViewController *fileListVC = [[FileListTableViewController alloc] init];

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentPath = [paths firstObject];

    // 默认起始地址
    fileListVC.directoryStr = documentPath;

    // 默认发送邮件的列表或者单个邮箱
    fileListVC.defaultMail = @"[email protected],[email protected],[email protected]";

    [self presentViewController:fileListVC animated:YES completion:nil];

效果图

image

Latest podspec

{
    "name": "SandBoxFileList",
    "version": "2.0.4",
    "summary": "Use airDrop or Mail to transfer sandBox files, or view the file directly or play the video",
    "description": "Use airDrop or Mail to transfer sandBox filesn  n    FileListTableViewController *fileListVC = [[FileListTableViewController alloc] init];n    [self.navigationController pushViewController:fileListVC animated:YES];nnorn    FileListTableViewController *fileListVC = [[FileListTableViewController alloc] init];n    [self presentViewController:fileListVC animated:YES completion:nil];",
    "homepage": "https://github.com/iodefog/SendSandBoxFile",
    "license": "MIT",
    "authors": {
        "lihongli": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/iodefog/SendSandBoxFile.git",
        "tag": "2.0.4"
    },
    "source_files": [
        "Classes",
        "SendSandBoxFile/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This