从 ios 更新 SQLite 单元格 [英] Updating SQLite cell from ios

查看:33
本文介绍了从 ios 更新 SQLite 单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从一个 sqlite 文件中读取信息,我能够从数据库中读取并使用数据库中的对象创建一个数组.当我的代码中发生某些事情时,我需要更新数据库中的条目.例如,一个问题有一个名为完成"的列,该列设置为否,当回答时我想将值更改为是.如何在 xcode 上打开数据库并编辑单元格?

I am reading information from an sqlite file, I am able to read from the database and create an array with objects from the database. I need to update entries on the database when something happens in my code. For example a question has a column called 'complete' which is set as no, when answered I want to change the value to yes. How do I open a database and edit a cell on xcode?

推荐答案

首先没有人从头开始回答你.首先,您需要做一些事情并在这里询问您是否卡在某个地方.无论如何,这里有一些教程,您可以创建、更新、读取和删除 sqlite 表:

Firstly no one answer you from the scratch . First You need to do something and ask here if you stuck somewhere .Anyway here are some tutorial you can create , update ,read and delete the sqlite table :

http://www.raywenderlich.com/913/sqlite-tutorial-for-ios-making-our-app

http://www.tutorialspoint.com/ios/ios_sqlite_database.htm

这篇关于从 ios 更新 SQLite 单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆