为什么';t重新加载rowsatindexpaths:在iOS 7上工作?

为什么';t重新加载rowsatindexpaths:在iOS 7上工作?,ios,objective-c,uitableview,ios7,Ios,Objective C,Uitableview,Ios7,我在iOS 6上使用了重新加载rowsatindexpaths:,运行良好 [self.tableview beginUpdates]; [self.tableview reloadRowsAtIndexPaths:indexPath withRowAnimation:UITableViewRowAnimationNone]; [self.tableview endUpdates]; 这会在iOS 6上调用tableview的CellForRowatineXpath:,但在iOS 7上不会调用

我在iOS 6上使用了
重新加载rowsatindexpaths:
,运行良好

[self.tableview beginUpdates];
[self.tableview reloadRowsAtIndexPaths:indexPath withRowAnimation:UITableViewRowAnimationNone];
[self.tableview endUpdates];

这会在iOS 6上调用tableview的
CellForRowatineXpath:
,但在iOS 7上不会调用tableview的
CellForRowatineXpath:
,因此我无法更新指定的单元格。

我遇到了同样的问题。还在寻找解决方案。你认为这是ios 7框架缺陷吗?我终于找到了原因。我使用[TableView indexpathforcell:UITableViewCell]获得了indexpath。但是,此方法始终返回空值,因此reloadrowsatindexpath没有运行。我得到了下面的方法。CGPoint pos=[ui按钮转换点:CGPointZero到视图:UITableView];NSIndexPath*indexPath=[UiTableView indexPathForRowAtPoint:pos];我希望这能对你有所帮助。然后把这个帖子作为一个答案@TianxiaDo yourself a good and post这个答案。