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

前端 未结 8 2010
礼貌的吻别
礼貌的吻别 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

    I would use NSOperation and just do everything there during startup. NSOperation rocks. Did I say how much NSOperation rocks? It does. Rock, that is.

提交回复
热议问题