首页 > 其他 > 详细

tableview didse

时间:2016-03-04 14:43:27      阅读:194      评论:0      收藏:0      [点我收藏+]

tableview didse

tableview didselect去除点击效果 

有两个:

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{

//    UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

//    [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; (这种是没有点击后的阴影效果)

    

    UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];  

    cell.selected = NO;  (这种是点击的时候有效果,返回后效果消失)

 

tableviewCell中Cell不能被点击


cell.
selectionStyle = UITableViewCellSelectionStyleNone;



本文出自 “ZhuoKing” 博客,请务必保留此出处http://9951038.blog.51cto.com/9941038/1747482

tableview didse

原文:http://9951038.blog.51cto.com/9941038/1747482

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!