当前位置: 编程技术>移动开发
本页文章导读:
▪应用ZipArchive解压 使用ZipArchive解压
1、在Frameworks中加入libz.dylib库
2、在项目中加入ZipArchive的相关文件
3、简单示例
NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
//设置ZIP文件路径
NSStrin.........
▪ 场景切换过程中的loading打造(愤怒的小鸟loading) 场景切换过程中的loading制作(愤怒的小鸟loading)
详情请参考:【Software Myzone】:http://www.firedragonpzy.com.cn/index.php/archives/3100
......
▪ CCScrollView及CCScrollView与CCMenu有关问题【终结篇】 CCScrollView及CCScrollView与CCMenu问题【终结篇】
详情请参考:【Software Myzone】:http://www.firedragonpzy.com.cn/index.php/archives/3111
......
[1]应用ZipArchive解压
来源: 互联网 发布时间: 2014-02-18
使用ZipArchive解压
1、在Frameworks中加入libz.dylib库
2、在项目中加入ZipArchive的相关文件
3、简单示例
NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
//设置ZIP文件路径
NSString *filePath = [path stringByAppendingPathComponent:@"book.zip"];
//设置解压文件夹的路径
NSString *unZipPath = [path stringByAppendingPathComponent:@"books"];
//初始化ZipArchive
ZipArchive *zip = [[ZipArchive alloc] init];
BOOL result;
if ([zip UnzipOpenFile:filePath]) {
//解压文件
result = [zip UnzipFileTo:unZipPath overWrite:YES];
if (!result) {
//解压失败
NSLog(@"unzip fail");
}else {
//解压成功
NSLog(@"unzip success");
}
[zip UnzipCloseFile];//关闭
}
[zip release];
[2] 场景切换过程中的loading打造(愤怒的小鸟loading)
来源: 互联网 发布时间: 2014-02-18
场景切换过程中的loading制作(愤怒的小鸟loading)
详情请参考:【Software Myzone】:http://www.firedragonpzy.com.cn/index.php/archives/3100
详情请参考:【Software Myzone】:http://www.firedragonpzy.com.cn/index.php/archives/3100
[3] CCScrollView及CCScrollView与CCMenu有关问题【终结篇】
来源: 互联网 发布时间: 2014-02-18
CCScrollView及CCScrollView与CCMenu问题【终结篇】
详情请参考:【Software Myzone】:http://www.firedragonpzy.com.cn/index.php/archives/3111
详情请参考:【Software Myzone】:http://www.firedragonpzy.com.cn/index.php/archives/3111
最新技术文章: