2015笔记——cell的细节
2018-07-27 本文已影响16人
满庭花醉三千客
UITableViewCell可以设置是否允许点击:

设置点击后是没有效果:

设置点击出现效果后,再消除效果:

第一种:设置为NO之后,tableView怎么点都不会有事件了。
第二种:设置了之后,tableViewCell点击后,相应事件,但是没有点击的效果。
第三种:设置之后,tableViewCell能点击,有效果(默认效果),而且会稍后(约0.25s)将选中效果取消掉。
小细节才是王道!弄清楚了才能得心应手~加油!