InAppSettingsKit 可以做到这一点,还是有其他库?
我正在尝试实现一个系统,在该系统中,用户最初会在 uinavigationview 中以 uitableview (分组样式)形式呈现单个表格单元。
---------------
+ | add record |
---------------
当他们单击单元格时,他们会被推送到一个新屏幕,在其中填充一些文本视图(可能嵌入表格视图的单元格中)
---------------
| (name) |
---------------
| (phone num) |
---------------
然后当他们返回时,他们可以看到新记录以及“添加记录”单元格。
---------------
| record 1 |
---------------
+ | add record |
---------------
(当他们再次进入记录 1 时,会有一个删除按钮)
是否有任何示例代码或库可以实现此目的? InAppSettingsKit 怎么样?我更关心的是演示。我可以自己处理数据的保存。
I'm trying to implement a system whereby the user is initially presented with a single tablecell, in a uitableview (grouped style), within a uinavigationview.
---------------
+ | add record |
---------------
When they click on the cell, they are pushed onto a new screen where they fill in a few textviews (perhaps imbedded in a tableview's cells)
---------------
| (name) |
---------------
| (phone num) |
---------------
Then when they go back, they can see the new record as well as the 'add record' cell.
---------------
| record 1 |
---------------
+ | add record |
---------------
(When they go into record 1 again there would be a delete button)
Is there any sample code or libraries which would achieve this? What about InAppSettingsKit? It's more the presentation I'm concerned with. I can handle the saving of data myself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最新版本的 InAppSettingsKit 包含
IASKSettingsStore
,它允许您使用不同的存储而不是NSUserDefaults
。例如,您可以将设置存储在 plist 中。结合自定义单元格 (IASKCustomViewSpecifier
),您应该能够完成您的任务。不幸的是,目前还没有针对此场景的完整示例代码。不过,欢迎您做出贡献;)The newest version of InAppSettingsKit includes
IASKSettingsStore
which allows you to use a different store instead ofNSUserDefaults
. For instance, you can store the settings in a plist. Combined with custom cells (IASKCustomViewSpecifier
), you should be able to accomplish your task. Unfortunately, there's no complete sample code for this scenario yet. You're welcome to contribute, though ;)