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]强制细胞重绘.我没有想法.

再次感谢!


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

查看所有标签

猜你喜欢:

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

Coming of Age in Second Life

Coming of Age in Second Life

Tom Boellstorff / Princeton University Press / 2008-04-21 / USD 29.95

The gap between the virtual and the physical, and its effect on the ideas of personhood and relationships, is the most interesting aspect of Boellstorff's analysis... Boellstorff's portrayal of a virt......一起来看看 《Coming of Age in Second Life》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

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

HSV CMYK互换工具