突出显示的UITableViewCell与选定的UITableViewCell有什么区别? [英] What is the difference between a highlighted UITableViewCell and a selected UITableViewCell?

查看:85
本文介绍了突出显示的UITableViewCell与选定的UITableViewCell有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UITableViewCell反映了两种截然不同的状态:突出显示和选择。

A UITableViewCell reflects two distinct states: Highlighted and Selected.

对我来说,它们听起来完全相同,究竟有什么区别?

For me, they sound identical so what exactly are the differences?

推荐答案

突出显示在降落时发生。

已选择在修饰时发生,然后调用 didSelectRowAtIndexPath:。在标准的 UITableView 中,高亮和选择之间通常会有一个小的延迟。

Selected happens on touch up, followed by the call to didSelectRowAtIndexPath:. In a standard UITableView, there is usually a small delay between the highlight and the select.

这篇关于突出显示的UITableViewCell与选定的UITableViewCell有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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