tableView中deselectRowAtIndexPath的作用

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

 

posted @ 2015-06-27 19:59  糖醋排骨_zwt  阅读(761)  评论(0编辑  收藏  举报