PrettyKit icon indicating copy to clipboard operation
PrettyKit copied to clipboard

Inserting and removing PrettyTableViewCell rounded corners not being redrawn

Open justjimmy opened this issue 12 years ago • 1 comments

So if you start with 1 row and insert a new row in a grouped table, the first row will have rounded corners on top, but the now second row still has the 4 rounded corners.

Similar issue when you delete the first row of a grouped table.

To fix, I guess I could reload the affected rows (in my tableviewcontroller) every time an insert/delete is done... but I wonder if there's a way PrettyTableViewCell can handle it automatically?

justjimmy avatar Sep 12 '12 02:09 justjimmy

I don't think there is any sane way of making the cells do this automatically. Just call prepareForTableView:indexPath: on the affected cells in the corresponding UITableViewDelegate methods to redraw their backgrounds.

Amnell avatar Sep 12 '12 06:09 Amnell