Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
固定の場所に Sqlite データベース ファイルを作成するにはどうすればよいですか。FMDB ラッパーを使用してデータベース ファイルを作成しています。入力している場所にデータベース ファイルを作成したいと考えています。
データベースをどこに保存しますか?
fmdbによって非常に簡単になりますFMDatabase* db = [FMDatabase databaseWithPath:@"/tmp/tmp.db"];
fmdb
FMDatabase* db = [FMDatabase databaseWithPath:@"/tmp/tmp.db"];
"/tmp/tmp.db"好みの場所、おそらくアプリケーションサポートフォルダーに変更するだけです。
"/tmp/tmp.db"