How to properly call SQLite functions from background thread on iPhone?

前端 未结 8 2026
礼貌的吻别
礼貌的吻别 2020-12-29 15:10

I\'m using an SQLite database in my iPhone app. At startup, there are some database actions that I want to perform in a separate thread. (I\'m doing this mainly to minimize

8条回答
  •  灰色年华
    2020-12-29 15:59

    If you are still not having any luck with above, you could try using this wrapper by EnormEGO https://github.com/jdp-global/egodatabase

    They use asynchronous callbacks which may kill two birds with one stone.

    Have a look at my Readme section for EGODatabaseRequest - asynchronous requests to db

提交回复
热议问题