TableView没有显示数据? [英] TableView is not showing data?
问题描述
我之前已将此问题放在以下链接中,并附带代码&截图。
I have place this question before on following link with code & screenshot.
现在我开始知道我的tableview正在加载tableview单元格中的数据,但没有显示/显示它。我的项目中有一个模型视图控制器。通过Search Button从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中可见modelview控制器.....
一切正常。我只是想知道在第一个屏幕本身调用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???
推荐答案
在调用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没有显示数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!