我想知道是否可以在不调用reload的情况下增加UITableview的行数?我不想重新加载整个表,只是在运行时添加新行。
我知道如何插入新行并进行更新,但是只有在对UITableView对象调用reload之后,行数才会增加吗?

最佳答案

尝试做这样的事情:

NSIndexPath *indexPath1 = [NSIndexPath indexPathForRow:0 inSection:1];
//put these indexpaths in a NSArray

[tableView insertRowsAtIndexPaths:array withRowAnimation:UITableViewRowAnimationNone];

关于ios - 如何在运行时增加UITableview中的行数?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14395012/

10-10 00:52
查看更多