展开列表视图中的列表项

发布于 2024-11-19 14:26:35 字数 266 浏览 7 评论 0原文

我的要求是,我有一个城市图标和前面的城市名称。当我单击其中任何一个时,列表视图中的特定行应该展开并显示该城市的描述(我通过从 plist 解析获得)。

有人可以告诉我,如何处理这个问题吗?是用listView对象吗?

在此处输入图像描述

此处,仅应出现“这是纽约”、“你在 greenwhich 村”之类的描述当我点击图像或文字“Soho”时

提前致谢

My requirement is, I have a city icon and name of the city in front of it. When I clicked on either of this, that particular row in the list view should expand and display the description of that city(which I get by parsing from a plist).

Can anybody let me know, how to handle this? Is it with the listView object?

enter image description here

Here, the description like "This is new york", "You are in greenwhich village" should appear only when I click on the image or text "Soho"

Thanks in advance

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文