首页 > 其他 > 详细

tableView中deselectRowAtIndexPath的作用

时间:2014-12-29 19:57:11      阅读:230      评论:0      收藏:0      [点我收藏+]
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {
     [tableView deselectRowAtIndexPath:indexPath animated:YES];
     // 不加此句时,在二级栏目点击返回时,此行会由选中状态慢慢变成非选中状态。
    // 加上此句,返回时直接就是非选中状态。
 }

tableView中deselectRowAtIndexPath的作用

原文:http://www.cnblogs.com/pjl111/p/4192223.html

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