How to get Sqlite database file when application is running on device?

前端 未结 8 1658
迷失自我
迷失自我 2020-12-15 01:08

I am facing problem in accessing database file when I am running it on device. How can I get that file? There is no problem in accessing file when I am running application o

8条回答
  •  萌比男神i
    2020-12-15 01:54

    do

    NSString *dbFilePath=[NSHomeDirectory stringByAppendingPathComponent:@"mysqlite.sqlite"];
    

    this should work for both device and simulator.

提交回复
热议问题