cell selectedBackgroundView区域大于cell的异常
来源:互联网 发布:thinkphp手机商城源码 编辑:程序博客网 时间:2024/05/19 22:27
cell里
layoutSubviews 必须要调用 [super layoutSubviews].
一般情况其实也出不了错,但是如果在cell高度动态改变的情况下,如果复用了一个height大的cell,那么现在的cell被点击时selectedbackgroundview会特别的大。
这个问题我查了2个小时也没查出哪错了!!!就是因为没调用super的 layoutSubviews !!!!
当复用一个cell时,selectedbackgroundview也复用的旧的,当调用父类的layoutsubviews时,他会重置selectedbackgroundview与cell的frame保持一致!!!
layoutsubviews会做的事:
textLabel
detailLabel
imageView
selectedBackgroundView
contentView
这些view frame统统被重置
0 0
- cell selectedBackgroundView区域大于cell的异常
- ios 设置cell的selectedBackgroundView的大小
- iOS-cell.selectedBackgroundView自定义
- UITableViewCell的backGroundView和selectedBackgroundView在cell中的层次
- iOS-解决自定义cell.selectedBackgroundView 遮挡分割线问题
- UITableView指定Cell的点击区域
- cell
- cell
- cell
- cell
- Cell
- TableView的顶部有一部分空白区域,不是Cell
- UITableViewCell的操作(增加cell,删除cell,插入cell)
- 点击cell显示cell的细节
- 点击cell显示cell的细节
- 点击cell显示cell的细节
- cell重用,少量cell的解决办法
- 点击cell显示cell的细节
- JDBC驱动类型
- ios编程360相机滤镜
- AsyncTask源码浅析
- Http协议网络请求java方式
- [转]Android关于使用混淆文件proguard-project.txt笔记
- cell selectedBackgroundView区域大于cell的异常
- POJ 2533 O(nlogn)解最长递增子序列(构造法)
- Java中CountDownLatch、CyclicBarrier、Thread.join方法基本应用
- Oracle 执行计划 Explain plan for
- mysql存储过程中三种循环
- APP的安装卸载测试
- 各协议(TCP/IP、UDP、HTTP、socket)内与外简述
- ios编程之蓝牙交互
- FPGA开发基本流程及注意事项