ios-破解ipa包中的png 图片
2012-02-14 14:20
239 查看
转载自:http://blog.csdn.net/diyagoanyhacker/article/details/7084887
1。首先下载iPhone Explorer
2。用iPhone Explorer获取iphone app的.app目录
3。新建一个ios工程 然后加入以下代码
//原文地址:http://blog.csdn.net/diyagoanyhacker/article/details/7084887
//作者:禚来强
- (BOOL)writeApplicationData:(NSData *)data toFile:(NSString *)fileName {
NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
if (!documentsDirectory) {
NSLog(@"Documents directory not found!");
return NO;
}
NSString *appFile = [documentsDirectory stringByAppendingPathComponent:fileName];
return ([data writeToFile:appFile
atomically:YES]);
}
//原文地址:http://blog.csdn.net/diyagoanyhacker/article/details/7084887
//作者:禚来强
- (void)loadAllBundleImage{
NSArray * imagesPath = [NSBundle
pathsForResourcesOfType:@"png"
inDirectory:[[NSBundle
mainBundle]bundlePath]];
for (NSString * a
in imagesPath) {
NSData * idata =UIImagePNGRepresentation([UIImage
imageWithContentsOfFile:a]);
[self
writeApplicationData:idata toFile:[a
lastPathComponent]];
}
}
4。把需要破解的图片加入工程
5。运行程序
6。在该程序的 Documents 文件夹下就可以找到破解的图片。
(可以写成一个终端应用)
1。首先下载iPhone Explorer
2。用iPhone Explorer获取iphone app的.app目录
3。新建一个ios工程 然后加入以下代码
//原文地址:http://blog.csdn.net/diyagoanyhacker/article/details/7084887
//作者:禚来强
- (BOOL)writeApplicationData:(NSData *)data toFile:(NSString *)fileName {
NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
if (!documentsDirectory) {
NSLog(@"Documents directory not found!");
return NO;
}
NSString *appFile = [documentsDirectory stringByAppendingPathComponent:fileName];
return ([data writeToFile:appFile
atomically:YES]);
}
//原文地址:http://blog.csdn.net/diyagoanyhacker/article/details/7084887
//作者:禚来强
- (void)loadAllBundleImage{
NSArray * imagesPath = [NSBundle
pathsForResourcesOfType:@"png"
inDirectory:[[NSBundle
mainBundle]bundlePath]];
for (NSString * a
in imagesPath) {
NSData * idata =UIImagePNGRepresentation([UIImage
imageWithContentsOfFile:a]);
[self
writeApplicationData:idata toFile:[a
lastPathComponent]];
}
}
4。把需要破解的图片加入工程
5。运行程序
6。在该程序的 Documents 文件夹下就可以找到破解的图片。
(可以写成一个终端应用)
相关文章推荐
- ios-破解ipa包中的png 图片
- ios-破解ipa包中的png 图片
- 还原iOS的安装包ipa里的png图片为正常图片
- iOS 查看ipa包中的文件格式以及图片
- <UI>还原ipa包中的所有png图片
- 如何查看iOS app包中的png图片
- 还原iOS的安装包ipa里的png图片为正常图片
- 修复从 app 包里面抓出的 png 图片的文件头(破解,ipa)I
- 修复从 app 包里面抓出的 png 图片的文件头(破解,ipa)II
- 如何从ipa包中获取png图片
- 提取ipa里面的资源图片 png
- iOS拍照 相册选取 保存PNG图片到Documents下,并利用UICollectionView显示出来
- 如何查看经过iOS优化的PNG图片
- iOS程序破解:获取应用商店上应用的ipa程序包
- Objective-C ,ios,iphone开发基础:ios判断图片为png还是jpg或者jepg
- 减小app大小的方法——iOS开发用ImageOptim压缩png图片
- iOS ipa包瘦身---删除无用图片资源
- iOS获取IPA包中的素材
- 提取ipa里面的资源图片 png
- 【转】IOS开发中图片资源使用png还是jpg格式