根据选定的段索引读取 .plist 的不同部分

发布于 2024-12-24 02:37:21 字数 253 浏览 5 评论 0原文

我创建了一个plist。我想使用包含 3 个部分的 UIsegmentedControl。每个部分都应将 plist 的不同部分加载到 tableView 中。我能否获得一些有关如何实现此目的的建议(将 plist 的不同部分加载到 tableView)?

请查看图片以获取更多信息。

谢谢

在此处输入图像描述

I've created a plist. I want to use a UIsegmentedControl with 3 sections. Each section should load a different part of the plist into a tableView. Can I please get some advise about how to achieve this(loading a different part of the plist into a tableView)?

Please take a look at the image for more info.

Thanks

enter image description here

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

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

发布评论

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

评论(1

吻安 2024-12-31 02:37:21

您读取数组中的三个项目。
切换控件时,您只需使用项目数组中的正确索引重新填充表格视图即可。

You read the three items in an array.
When switching the control you simply repopulate the tableview with the correct index from your items array.

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