是否可以在iOS应用程序中将新文件写入捆绑资源目录? [英] Is it possible to write new file to bundle resource directory in iOS app?

查看:99
本文介绍了是否可以在iOS应用程序中将新文件写入捆绑资源目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在iOS应用中将新文件写入捆绑资源目录?

Is it possible to write new file to bundle resource directory in iOS app?

推荐答案

没有办法写在bundle dir ..因为bundle dir是使用SSL证书签名的代码而你无法破解它。但是你可以轻松地在你的iphone应用程序的文档目录中写入

No there is no way to write in the bundle dir.. because the bundle dir is code signed with SSL certificate and you can't break it. however you can easily write in the documents directory of you iphone application

你可以使用这个来获取文档目录路径 -

You can get the documents directory path using this -

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
return [paths objectAtIndex:0];

这篇关于是否可以在iOS应用程序中将新文件写入捆绑资源目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆