Will the app get rejected if you write image to /private/var/mobile/Media/DCIM/100APPLE/ directly? [closed]

一世执手 提交于 2019-12-13 06:44:07

问题


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


回答1:


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?)

Edit: 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").



来源:https://stackoverflow.com/questions/2884003/will-the-app-get-rejected-if-you-write-image-to-private-var-mobile-media-dcim-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!