Wednesday, December 25, 2013

Databases have a problem!

When added to the sqlite database program which runs on mac above can be successfully copied to the Document directory, but I go online when the iphone is not copied, it has encountered this problem? Can help solve it? / / NSString * localDBPath = [[NSHomeDirectory () stringByAppendingPathComponent: @ "Documents"] stringByAppendingPathComponent: @ "Golf.sqlite3"];
/ / If ([[NSFileManager defaultManager] fileExistsAtPath: localDBPath]!) {
/ / NSString * bundleDBPath = [[NSBundle mainBundle] pathForResource: @ "Golf" ofType: @ "sqlite3"];
/ / [[NSFileManager defaultManager] copyItemAtPath: bundleDBPath toPath: localDBPath error: nil];
/ /}
Reply:
In fact, I would like to know how you say no to replicate the success of the test?
You again with if ([[NSFileManager defaultManager] fileExistsAtPath: localDBPath]!) Judgment?
Reply:
The test is not successful, I mean that you can call the above data after copying mac, iphone above but how to do so? ? ? The above code is also that you gave me, but it runs above the mac! iphone not, with no need if ([[NSFileManager defaultManager] fileExistsAtPath: localDBPath]!) phrase seems to not work!

Reply:
I mean, you verify the file exists
iPhone

Reply:
[Img = http://b80.photo.store.qq.com/http_imgload.cgi?/rurl4_b=3a6fd8ba77a44148ed54bece782f3ab96d9f1f1b1ef4837130a15aa8674ef3e932808776cf68dbb563e64054b4fb00475bb7f133508667a37495a3c4cac827e5467ceefa10440aee3c6fe72e4f936f02db83b090&a=80&b=80] [/ img]
Reply:
http://b80.photo.store.qq.com/http_imgload.cgi?/rurl4_b=3a6fd8ba77a44148ed54bece782f3ab9769b195aa1b28a041b2403663919c5b234049d575435bd7ff9430a42dbf5cb37e05788324fda805baed30728e92e2306d3df7f0e75940e02433bdfee30abce6608166616&a=80&b=80
Reply:
http://b80.photo. store.qq.com / http_imgload.cgi? / rurl4_b = 3a6fd8ba77a44148ed54bece782f3ab9769b195aa1b28a041b2403663919c5b234049d575435bd7ff9430a42dbf5cb37e05788324fda805baed30728e92e2306d3df7f0e75940e02433bdfee30abce6608166616 & a = 80 & b = 80
Reply:
This metamorphosis site
Upload a picture also limit ~ ~
Contempt TX

No comments:

Post a Comment