文件存储

文件存储支持文件数据的存储、读取、清除和加密功能。 必须把文件读取成data再进行存储

self.manager = [TMFStorageManager sharedManager];
//存储 加密key的长度必须大于10
[self.manager.commonFileManager setFileWithData:self.fileData fileName:self.fileName key:@"98745612301"];

//读取
NSData *fileData = [self.manager.commonFileManager getFile:self.fileName key:@"98745612301"];

//清除
BOOL = isSuccess = [self.manager.commonFileManager removeFile:self.fileName];
Copyright © 2013-2023 Tencent Cloud. all right reserved,powered by GitbookUpdate Time 2023-08-31 14:46:07

results matching ""

    No results matching ""