用户可以从iPhone应用程序中获取资源吗? [英] Can the user take the resource from the iPhone Apps?
问题描述
我知道Apple Mac OS .app文件是程序和数据的集合.我认为iPhone就是这种方式.我可以使用这种方式将Mac OS .app解压缩以查找资源和图像. iPhone App可以做类似的事情吗?我的意思是,用户可以将iPhone .app解压缩以从中获取资源/img吗? thz.
I know that the Apple Mac OS .app file is a collection of programs and data. I guest the iPhone is similar in this way. I can unzip a Mac OS .app to find the resource , images using this way. Can the iPhone App do the similar thing? I mean, can the user unzip the iPhone .app to get the resource/ img from that? thz.
推荐答案
是.绝对可见,只需付出一些额外的努力即可.
Yes. They are definitely viewable, with a little extra effort.
解压缩".ipa"文件可获取所有.png和.nib资源. .png文件使用非标准格式(在此处描述)进行编码,因此您无法直接打开它们,但是同一页面上还指向将其转换为标准.png文件的工具.
Unzipping the ".ipa" file gets you all the .png and .nib resources. The .png files are encoded using a non-standard format (described here) so you can't open them directly, but that same page also points to a tool to convert them to standard .png files.
The .nib files are more problematic, as described in this question:
从技术上讲,可以实例化一个笔尖,并从中检出很多信息,但它并不简单,不会像使用界面生成器"那样产生任何结果
Technically it is possible to instantiated a nib and introspect much of the information out of it, but it is non-trivial and wouldn't result in anything like using Interface builder
请注意,签名与此无关:应用程序签名将检测是否有任何资源已更改,但是签名不是资源无法(方便)打开的原因:对应用程序进行签名不会t更改基础资源的格式.
Note that signatures don't have anything to do with this: the application signature will detect if any of the resources have changed, but the signature is not the reason the resources are not (conveniently) openable: signing the application doesn't change the format of the underlying resources.
Apple大概选择了这些格式来优化加载时间-方便地将图像从其他人的应用程序中拉出可能不是设计目标:-)
Apple presumably chose these formats to optimize load time - making it convenient to pull images out of someone else's app was probably not a design goal :-)
这篇关于用户可以从iPhone应用程序中获取资源吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!