NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *writableDBPath = [documentsDirectory stringByAppendingPathComponent:@"Sports.sqlite"];
以降:
NSString *defaultDBPath = [[[NSBundle mainBundle] resourcePath]
stringByAppendingPathComponent:@"Sports.sqlite"];
success = [fileManager copyItemAtPath:defaultDBPath
toPath:writableDBPath error:&error];
何両方の違いは?
ありがとう!この「グラフィックツール」について、どうやって入手できますか?もう一度ありがとう – Paul
おそらく最高のグーグルグーグルがいくつかありますが、いくつか試していますが、私は個人的にはFirefox用のSQLマネージャプラグインが好きです。それはERDのものではありませんが、コマンドラインを使うよりも簡単に表を見たり操作したりすることができます。 –
okありがとうPaul! – Paul