ios - iPhone 延迟后取消选择行

标签 ios objective-c swift uitableview uitableviewrowaction

我想知道是否有人知道延迟后取消选择 TableView 的方法?

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

谢谢!

最佳答案

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

另一种方法是:

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

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

关于ios - iPhone 延迟后取消选择行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5034044/

相关文章:

swift - NSPredicate - 使用日期属性搜索

swift - 为什么不能在 map 语句中使用键路径语法?

ios - 收据日期与沙箱持续时间不匹配

ios - 尝试在 Swift 上使用 EDSunriseSet SDK,但日落时间变得奇怪

ios - Swift - 执行被中断,原因是 exc_bad_access 多维数组

iphone - 如何让 UIWebView 滚动到顶部?

ios - 仅在 Core plot iOS 中滚动数据

iphone - 仅在屏幕的有限区域内保持 UIView 可见

ios - 使用 NSUserDefaults 改变 TintColor

ios - 使用 sections 将 indexPath 减一