Skip to content

iOS8沙盒机制更新后无法查本地文件,给开发带来困扰。使用本库可以把沙盒中文件通过AirDrop、QQ、邮件发送出来,支持多选文件、发文件夹。

License

Notifications You must be signed in to change notification settings

GarfieldLover/GLSandboxFileOutput

Repository files navigation

SendSandBoxFileSwift

iOS8沙盒机制更新后无法查本地文件,给开发带来困扰。使用本库可以把沙盒中文件通过AirDrop、QQ、邮件发送出来,支持多选文件、发文件夹。

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

About

iOS8沙盒机制更新后无法查本地文件,给开发带来困扰。使用本库可以把沙盒中文件通过AirDrop、QQ、邮件发送出来,支持多选文件、发文件夹。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published