Does the rowHeight of a UITableViewCell account for the height of its separator?
I have a custom UITableViewCell nib that has an image on the left side occupying the entire height of the cell (si开发者_运维技巧milar to the grouped table views in the iTunes app). I have noticed that sometimes the icons appear to obscure the separator line at the bottom of the cell they are associated with.
My question is this: in computing the height of the cell, should I add an additional 1 or 2 pixels (depending on the separator style) to account for the separator? Is this documented anywhere?
As I pointed in this question line separator does not affect contents size, so it seems separator is drawn in (or over) UITableView cell and so you indeed need to add those pixels to avoid your cell content to obscure separator.
精彩评论