iphone – 试图强制重绘UITableViewCell

栏目: IOS · 发布时间: 7年前

内容简介:的Beveled UITableViewCells上发现了这篇文章.我正在使用这种技术来减小细胞的宽度,并且在大多数情况下它的效果很好.但是,我有一个小问题.有时细胞不能正确重绘.例如,即使一个单元格应该是一个“中间”单元格,它也会被绘制成一个“顶部”单元格:yfrog.com/f1screenshot20100424at100我怎样才能解决这个问题?
我在 http://news.selectstartstudios.com/beveled-uitableviewcells/

的Beveled UITableViewCells上发现了这篇文章.我正在使用这种技术来减小细胞的宽度,并且在大多数情况下它的效果很好.

但是,我有一个小问题.有时细胞不能正确重绘.例如,即使一个单元格应该是一个“中间”单元格,它也会被绘制成一个“顶部”单元格:yfrog.com/f1screenshot20100424at100

我怎样才能解决这个问题?

我试图通过[cell setNeedsDisplay],[cell setNeedsLayout],[tableView reloadRowAtIndexPath:withAnimation:],[cell drawrect:]和[tableView drawRect:atIndexPath]强制细胞重绘.我没有想法.

再次感谢!


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Algorithm Design

Algorithm Design

Jon Kleinberg、Éva Tardos / Addison-Wesley / 2005-3-26 / USD 144.20

Algorithm Design introduces algorithms by looking at the real-world problems that motivate them. The book teaches students a range of design and analysis techniques for problems that arise in compu......一起来看看 《Algorithm Design》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具