tableview didse
有两个:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
// [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; (这种是没有点击后的阴影效果)
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cell.selected = NO; (这种是点击的时候有效果,返回后效果消失)
cell.selectionStyle = UITableViewCellSelectionStyleNone;
本文出自 “ZhuoKing” 博客,请务必保留此出处http://9951038.blog.51cto.com/9941038/1747482
原文:http://9951038.blog.51cto.com/9941038/1747482