iphone - How to erase rectangles drawn in uitableviewcell? -
i subclassed uitableviewcell based on blog http://www.iphonedevx.com/?p=153. can draw columns , place text in grid.
when reload table, text , grid remains there. removed labels using [[cell viewwithtag:k] removefromsuperview]; how removethe grid lines drawn using drawrect:
assuming drawrect: method no longer drawing grid lines, should try calling setneedsdisplay or layoutsubviews on table view forces of cells redraw. reloading table using reloaddata reloads datasource, , don't believe redraws unless there changes model.
Comments
Post a Comment