如何取消TableViewCell的选中状态

时间:2014-10-26 11:29:56   收藏:0   阅读:171

在UITableView里面,选择了某一个cell以后,点击立刻取消该cell的选中状态,可以使用如下方法:

 

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

{

    //some functions

    ......

    // 取消选中状态

    [tableView deselectRowAtIndexPath:indexPath animated:NO]; 

}

 

原文:http://www.cnblogs.com/CoderXSLee/p/4051465.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!