发文章
发文工具
撰写
网文摘手
文档
视频
思维导图
随笔
相册
原创同步助手
其他工具
图片转文字
文件清理
AI助手
留言交流
来自: 叹落花 > 《待分类1》
0条评论
发表
请遵守用户 评论公约
(1)NSFileManager的简单使用
(1)NSFileManager的简单使用。NSFileManager *fileManager= [NSFileManager defaultManager];BOOLres = [fileManager createFileAtPath:filePath1contents:nilattributes:nil];NSLog(@"文件创建成...
保存UIImage到文件
保存UIImage到文件。NSString *documentsDirectory=[paths objectAtIndex:0];[fileManager createFileAtPath:[filePath stringByAppendingString:@"/image.png"] contents:data attributes:n...
SSZipArchive使用详解
解压zip文件解压密码保护的zip文件创建zip文件追加到zip文件压缩文件使用一个名字来压缩NSData.
iPhone文件系统NSFileManager讲解
为了使这个技巧完整,让我们再一起看下如何删除一个文件://在filePath2中判断是否删除这个文件if ([fileMgr removeItemAtPath:filePath2error:&error] != YES)NSLog(@"Unable to delete file...
iOS开发
- (NSString *)stringByAppendingPathExtension:(NSString *)str;//例:从本地文件沙盒中取图片并转换为NSDataNSString *path = [[NSBundle mainBundle] bundlePath];NSString *name = [NSString strin...
IOS成长之路
/* 又在临时路径中添加了一个mp3格式的文件,这就相当于设置了一个假的要下载的文件,其实是不存在的,可以这么理解:这里提供了一个容器,下载的内容填充到了这个容器中。//打开断点,是否要断...
Iphone文件读写操作
Iphone文件读写操作。//创建文件fileName文件名称,contents文件的内容,如果开始没有内容可以设置为nil,attributes文件的属性,初始为nil.NSString *gData2;[reader getBytes:&gData0range:NSMak...
【iOS】线程安全的文件读写
[[SGFileManager shareInstance] writeFileAsync:filePath data:data complete:^(BOOL result) { if (result) { NSLog(@"异步写入...
UIWebView实现离线浏览
[cachedResponses release];} - (id)initWithMemoryCapacity:(NSUInteger)memoryCapacity diskCapacity:(NSUInteger)diskCapacity diskPath:(NSString *)path { if (self = [super initWithMemoryCapa...
微信扫码,在手机上查看选中内容