首页 > 其他 > 详细

UITableViewcell选中后怎么去掉背景灰色

时间:2015-01-22 09:30:29      阅读:493      评论:0      收藏:0      [点我收藏+]
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell * cell = [tableView cellForRowAtIndexPath:indexPath];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
}
在这个函数里写上cell.selectionStyle = UITableViewCellSelectionStyleNone;就ok了

UITableViewcell选中后怎么去掉背景灰色

原文:http://blog.csdn.net/rainshenji/article/details/42986505

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