延迟后 iPhone 取消选择行 [英] iPhone deselect row after delay

查看:21
本文介绍了延迟后 iPhone 取消选择行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道在延迟后取消选择表格视图的方法?

I was wondering if anyone was aware of a way to deselect a table view after a delay?

我正在使用 deselectRowAtIndexPath 方法.我只希望突出显示在取消选择之前显示一秒钟.

I am using the deselectRowAtIndexPath method. I just want the highlighting to show up for a second before deselecting it.

谢谢!

推荐答案

我能够使用 [tableView deselectRowAtIndexPath:indexPath animation:YES];

另一种方法是:

[self performSelector:@selector(deselect:) withObject:self afterDelay:0.33];

然后创建一个方法 deselect 调用 deselectRowAtIndexPath

and then create a method deselect that calls deselectRowAtIndexPath

这篇关于延迟后 iPhone 取消选择行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆