以编程方式重命名plist值? [英] Renaming a plist value programmatically?

查看:78
本文介绍了以编程方式重命名plist值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个plist,并将其加载到表格视图中,我要做的是单击表格单元格时,它将弹出一个键盘并允许我编辑文本在表格单元格中(因此可以编辑plist值)

I've got a plist and I'm loading it into a table view, what I'm trying to do is when I click on a table cell, it'll bring up a keyboard and allow me to edit the text in the table cells (hence editing the plist value)

有人能为我指出正确的方向吗?

Would anyone be able to point me in the right direction as to how to complete this?

如果我在单元格中绘制了一个文本字段,那么我可以编辑文本,但是有人会知道如何将新输入的值发送到plist来更新刚刚编辑的值吗?

If I drew a text field in the cell, then I could edit the text, but would anyone know how then to send that newly typed in value to the plist to update the value that was just edited?

推荐答案

您拥有:

  1. 一个plist文件
  2. 在其中加载此plist的容器(例如NSMutableArray)
  3. 从此容器获取值的表视图.

要通过表格视图修改plist,请执行以下操作:

To modify plist through table view:

  1. 更改容器中的值
  2. 将容器写回到plist文件.

这篇关于以编程方式重命名plist值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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