开发者

iPhone sqlite sync with sqlite on dekstop/mac

Can I sync the local sqlite database on desktop/mac with sqlite d开发者_如何学运维atabase on iPhone for application by directly connecting the phone to my mac/pc?


You could enable iTunes document sharing with UIFileSharingEnabled in the info.plist and then copy the sqlite database file to the Documents directory in your application, if it isn't there already.

I've been able to do this and was able to read the file just fine with sqlite on the desktop.

unfortunately it isn't automatic. Someone would need to go into iTunes and manually copy the file over each time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜