TableView 不显示数据?

编程入门 行业动态 更新时间:2024-10-24 20:19:25
本文介绍了TableView 不显示数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我之前已经将这个问题放在下面带有代码的链接上&截图.

I have place this question before on following link with code & screenshot.

TableView 没有加载数据?

现在我知道我的 tableview 正在 tableview 单元格中加载数据但没有显示/显示它.我的项目中有一个模型视图控制器.通过搜索按钮从 Mapviewcontroller 屏幕调用 ModelView 控制器.退出模型视图控制器后,我可以在 tableview 中看到数据.(这意味着当我移动到下一个控制器并返回到上一个 tableview 时.我的 tableview 显示其中的数据.)

Now I came to know my tableview is loading data in tableview cell but not showing/displaying it. I have one Model View Controller in my project. The ModelView controller get called from Mapviewcontroller screen through Search Button. After resigning the Model view controller I can see the data in tableview. (It means when I move to next controller and back to previous tableview.. my tableview shows data in it.)

在这里,我只有在退出模型视图控制器后才能在 tableview 中看到我的数据.....一切正常.我只想知道我应该如何在第一个屏幕上调用 web 服务时立即显示 tableview 数据???

Here I my data get visible in tableview only after resigning the modelview controller..... Everything works fine. I just want to know how should I display the tableview data as soon as web-service get called on first screen itself???

推荐答案

Put [_tableView reloadData]; 在调用 web 服务的方法的末尾,或者填充 [_tableView reloadData];代码>标记数组.

Put [_tableView reloadData]; at the end of the method that calls the web-service, or the one that populates the markers array.

更多推荐

TableView 不显示数据?

本文发布于:2023-11-26 20:20:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635054.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据   TableView

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!