如果直接将图像写入

如果直接将图像写入

本文介绍了如果直接将图像写入/private/var/mobile/Media/DCIM/100APPLE/应用程序会被拒绝吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不使用 UIImageWirteToSavedAlbum,直接将图像写入/private/var/mobile/Media/DCIM/100APPLE/是否安全?

Instead of using UIImageWirteToSavedAlbum, is it safe to write your image to /private/var/mobile/Media/DCIM/100APPLE/ directly?

推荐答案

完全没有咨询实际的开发者合同,我很放心地说依靠它,你会被拒绝".

Without consulting the actual developer contracts at all, I feel safe in saying "Count on it, you will get rejected".

(此外,考虑到沙箱,这甚至可能吗?)

(Besides, is this even possible, given the sandboxing?)

iPhone 应用程序编程指南说出于安全考虑,您的应用程序被放置在它自己的目录中,并且仅限于读取和写入该目录中的文件."如果实际情况并非如此(即您可以写入 /private/var/... 无论如何,我很确定它仍然是禁止的").

The iPhone Application Programming Guide says that "for security purposes, your application is placed in its own directory and is limited to reading and writing files in that directory only." If that isn't actually the case (i.e. you can write to /private/var/... anyway, I'm pretty sure it's still "forbidden").

这篇关于如果直接将图像写入/private/var/mobile/Media/DCIM/100APPLE/应用程序会被拒绝吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 00:35