开发者

Sqlite Data base in iPhone application?

I am trying to read my SQLite database with in my iPhone application I am able to read some fields but how to read Text fields data type. I wrote this line of code...

NSString *aDescription = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 2)];  

B开发者_如何学JAVAut it gives me an error. Can anyone help me on this, or help me out with a data type compatible with Objective C?


Always consider checking that sqlite3_column_text does not return NULL before using it.

There is a big probability that this is the cause of your error/exception.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜