tableview是用storyboard创建的,我在代码中执行[self.tableView reloadData];
执行numberOfRowsInSection的时候返回的值是 value > 0 的。但是不执行cellForRowAtIndexPath方法。
代理也已经设置好。
ringa_lee2017-04-17 17:56:21
Is it true that the cellForRowAtIndexPath function is not used? You can stop and take a look. Is it possible that you didn’t notice that he was gone
PHP中文网2017-04-17 17:56:21
Are you sure it is cellForRowAtIndexPath? If you take a closer look, you may be confused. There is another function that is very similar to this one
黄舟2017-04-17 17:56:21
I happen to also encounter this problem, did you solve it? How to solve it?
阿神2017-04-17 17:56:21
Under what circumstances is data reloaded? If it is downloaded asynchronously, it must be returned to the main thread to refresh.