一般使用直接使用
#define Secons 5 行数
[famousTangTable reloadSections:[[NSIndexSet alloc] initWithIndex:Secons] withRowAnimation:UITableViewRowAnimationAutomatic];
刷新某一行时会使那一行的section消失掉,老外给的解决方法是
[CATransaction begin]; [CATransaction setCompletionBlock:^{ [famousTangTable reloadData]; }]; <span style="font-family: Arial, Helvetica, sans-serif;">[famousTangTable reloadSections:[[NSIndexSet alloc] initWithIndex:2] withRowAnimation:UITableViewRowAnimationAutomatic];</span> [CATransaction commit];
就可以解决消失问题