Latest 1.0
Homepage https://github.com/iodefog/SendSandBoxFileSwift
License MIT
Platforms ios 8.0
Frameworks MessageUI, UIKit, Foundation
Authors

一行代码 沙盒 SandBox ,文件利用Email, AirDrop, WebView,发送到电脑或者邮箱里。比如图片,视频,其他类型文件

pod 'SendSandBoxFileSwift'
pod install

直接使用

let fileListVC =  FileListTableViewController();
self.navigationController?.pushViewController(fileListVC, animated: true);

指定特定文件路径和默认邮箱

let fileListVC =  FileListTableViewController();
fileListVC.defaultMail = "[email protected], [email protected], [email protected],"
let documentPath =  NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).first;
fileListVC.directoryStr = documentPath;
self.present(fileListVC, animated: true) {
NSLog("present vc");
};

效果图:

image

Latest podspec

{
    "name": "SendSandBoxFileSwift",
    "version": "1.0",
    "summary": "Swift Use airDrop or Mail to transfer sandBox files, or view the file directly or play the video",
    "description": "For Swiftnn  let fileListVC =  FileListTableViewController();nself.navigationController?.pushViewController(fileListVC, animated: true);",
    "homepage": "https://github.com/iodefog/SendSandBoxFileSwift",
    "license": "MIT",
    "authors": {
        "lihongli": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/iodefog/SendSandBoxFileSwift.git",
        "tag": "1.0"
    },
    "source_files": [
        "Classes",
        "SendSandBoxFileSwift/**/*.swift"
    ],
    "exclude_files": "Classes/Exclude",
    "frameworks": [
        "MessageUI",
        "UIKit",
        "Foundation"
    ],
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.2"
    },
    "pushed_with_swift_version": "3.2"
}

Pin It on Pinterest

Share This