开发者

How to erase rectangles drawn in uitableviewcell?

开发者 https://www.devze.com 2023-02-24 02:04 出处:网络
I s开发者_如何学编程ubclassed uitableviewcell based on this blog http://www.iphonedevx.com/?p=153.

I s开发者_如何学编程ubclassed uitableviewcell based on this blog http://www.iphonedevx.com/?p=153. With this i can draw columns and place text in a grid.

When i reload the table, the text and grid remains there. I removed the labels using [[cell viewWithTag:k] removeFromSuperview]; How do i removethe grid lines that are drawn using drawrect:


Assuming that your drawRect: method is no longer drawing the grid lines, you should probably try calling setNeedsDisplay or layoutSubviews on your table view so that it forces all of the cells to redraw. Reloading the table using reloadData only reloads the datasource, and I don't believe it redraws unless there are changes to the model.

0

精彩评论

暂无评论...
验证码 换一张
取 消