tableView中deselectRowAtIndexPath的作用

1 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
2 {
3     [tableView deselectRowAtIndexPath:indexPath animated:YES];
4     // 不加此句时,在二级栏目点击返回时,此行会由选中状态慢慢变成非选中状态。
5     // 加上此句,返回时直接就是非选中状态。
6 }
原文地址:https://www.cnblogs.com/tate-zwt/p/4604569.html