阅读背景:

在iphone开发中使用Sqlite:如果我在init函数中打开数据库,它在我的其他函数中是不可访问的。有任何想法吗?

来源:互联网 

I'm trying to use sqlite in a 'data services' class like below. I keep getting an error code 1 when calling 'sqlite3_prepare_v2'. The logs certainly back up that the database is getting opened before my recipeNames function is called. I'm so stumped! Is it a memory management thing with the sqlite3 *db ? Eg is it getting freed when i don't want it to?I'm trying to use sqlite in a 'data services' c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: