开发者

How to call a tableviewcell on button click

i have created a custom tableview cell in which i am displaying the values fetched from xml parsing.The tableview cell enters in the first case i.e the 0th case and displays the current weather condition. i have button on my tableview cell.When i click on that button the tableview cell should enter into the second case of my tableview i.e case 1 and display the forecast condition of weather. i have done this .But my tableview always displays the 开发者_如何转开发same row in every cell. it does not enter into the case 1 .What may be the problem.Thanks


As long as you've updated the table view with the new data after the button click, you can simply reload it.

[self.tableView reloadData];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜