当点击cell 跳转到其他的页面,cell会处于选中状态,为了跳转后取消选中状态,可以加上deselectRowAtIndexPath这个方法
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
NSLog(@"选中第 %ld 行", indexPath.row + 1);
}
网友评论