cell返回时取消阴影

2018-07-24  本文已影响10人  加菲猫哈哈哈哈

在这里加上句代码

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

{

    //当手指离开某行时,就让某行的选中状态消失

    [tableView deselectRowAtIndexPath:indexPath animated:YES];

}

上一篇 下一篇

猜你喜欢

热点阅读