
Objective-C数据库
文章平均质量分 74
小才1991
这个作者很懒,什么都没留下…
展开
-
iOS Objective-C中对数据库的 增删改查
#import "StudentDataBase.h" #import "DB.h" #import "StudentModel.h" @implementation StudentDataBase //查找所有数据 +(NSArray *)findAll{ sqlite3 * db = [DB DBOpen]; //调用DB open方法 获取数据库指针 sqlite3_原创 2014-01-11 11:05:07 · 2153 阅读 · 0 评论 -
iOS Objective-C 取Bundle中数据库的指针
刚才发了一个Oc中对数据库简单的增删改查 我们不能对bundle中的数据库直接操作 所以要copy到Directory中进行操作,以下是获取数据库中指针的方法 .h中的代码 #import #import @interface DB : NSObject +(sqlite3 *)DBOpen; +(void)DBClose; @end .m中代码 #i原创 2014-01-11 11:30:27 · 1126 阅读 · 0 评论