在我们通过导航进行界面跳转时,会发现这样一个现象,在通过导航跳转回原来的界面,之前通过
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath进行跳转的被选中的cell仍然是被选中状态,这种状态很影响用户体验可以通过途中方法解决。
被选中的cell时的状态可以通过以下方法设置
cell.selectedBackgroundView =[[UIView alloc] initWithFrame:cell.frame];
cell.selectedBackgroundView.backgroundColor = [UIColor cyanColor];