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"