iphone - SQLite 数据库复制

标签 iphone objective-c ios sqlite ios5

Is it is necessary to copy my local Database.sqlite to Documents directory in ios environment? If Yes .,then please explain or refer link..

最佳答案

你需要复制它,因为如果你把它放在你的应用程序主包上​​,它将是只读的,这不是你想要的。因此,您必须将 .sqlite 复制到 Documents 目录或您具有写入权限的任何目录。

关于iphone - SQLite 数据库复制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12909307/

相关文章:

android - 创建免费应用程序 - 但仅适用于已购买付费版本的用户?

objective-c - 为 NSXMLParser 设置委托(delegate),给出 SIGABRT 错误

objective-c - 从工作表返回值?

iphone - 如何在 webView 中给页面 curl 动画?

ios - 我正在尝试为特定的 UIButton 调用 UIAlertView 方法,例如 UpdateEmail 或 ForgotPassword 但正确调用我正在使用此代码

iphone - 当选择 UITableViewCell 时,防止自定义 AccessoryView 显示选择

iphone - iPhone 中具有文本检测功能的增强现实引擎

objective-c - AVAudioPlayer 和 NSUserDefaults

iOS - 当有多行时让 UILabel 向下延伸

android - 使 jwplayer 同时适用于 android 和 iOS