1
私はsqliteとfmdbラッパーを使用します。負荷デシベルのための私のコードはこれです:ios fmdbファイルからロードする
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docsPath = [paths objectAtIndex:0];
NSString *path = [docsPath stringByAppendingPathComponent:@"biscuit.sqlite"];
FMDatabase *db = [FMDatabase databaseWithPath:path];
私は私のプロジェクトにbiscuit.sqlite
を追加しますが、このコードではなく、既存のものを開いて新しいファイルを作成します。このファイルをロードするにはどうしたらいいですか?
、異なるパスを使用します。http://stackoverflow.com/questions/13896757/apps-must-follow-the-ios-data-storage-guidelines-or-they-を拒否されるアプリケーション – luqmaan
".sqlite"接尾辞をドキュメントフォルダにドロップできますか? @luqmaan – Itachi