iPhone 设置菜单 - 创建一个允许用户添加、编辑和删除项目的列表

发布于 2024-09-11 06:25:01 字数 261 浏览 1 评论 0原文

我希望创建一个设置菜单功能,允许用户添加、编辑和删除列表中的项目。在将项目添加到列表中时,系统将提示用户添加一些进一步的子数据,例如名称、值等。列表应该只允许选择一个项目。据我所知,就用户添加/编辑/删除和添加子数据而言,这类似于但超出了 PSMultiValueSpecifier 的功能。

iPhone Wi-Fi 设置的“选择网络”部分也实现了类似的功能,但我不确定这是如何完成的。在此,用户可以添加新网络,然后指定安全类型、密码等。

我有什么想法可以实现这一目标吗?

I am looking to create a settings menu feature that allows users to add, edit and remove items from a list. In adding an item to the list, the user will then be prompted to add some further sub-data such as name, value etc. The list should only allow one item to be selected. As far as I can see this is similar to, but beyond the capability of the PSMultiValueSpecifier, in terms of the user adds/edits/deletes and sub-data being added.

Similar functionality is implemented in the ‘Choose A Network’ section of the iPhone’s Wi-Fi settings but I am not sure how this is done. In this, users can add a new network and then specify security type, password etc.

Any ideas how I might go about achieving this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

椵侞 2024-09-18 06:25:01

在有关 UITableView 的示例代码中进行搜索(在 iPhone 开发中心或文档中),我确信我已经看到过那种示例;)

Do a search in sample code regarding UITableView (In iPhone dev center or inside Documentation), I am sure I have seen that kind of sample ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文