更新iPhone上的表格单元格中的值

ing*_*.am 5 iphone uitableview tableviewcell

如果我在一个包含很多行的iPhone应用程序中有一个tableView设置,我该如何只更新其中一行呢?我知道他们在进入视图时手动刷新,但我想推出更新,为了争论计时器倒计时.

谢谢

ing*_*.am 15

谢谢你的答案,我找到了另一种方法!

通过这称呼:

NSIndexPath *a = [NSIndexPath indexPathForRow:0 inSection:0]; // I wanted to update this cell specifically
CustomTableViewCell *c = (CustomTableViewCell *)[theTableView cellForRowAtIndexPath:a];
Run Code Online (Sandbox Code Playgroud)

然后我可以直接修改我的CustomTableViewCell中存储的标签,如下所示:

[c nowPlayingTrack].text = ...
Run Code Online (Sandbox Code Playgroud)

希望有一天能帮到别人!

我不确定为什么但只是因为自定义标签而在tableView上调用reloadData导致运行时错误.:(