iphone – Accessing grouped UITableView section view? – Education Career Blog

Basically I want to “cut the corners” of the first cell imageview and the last cell imageview to match the curved corners on the grouped tableview section.

I was given the advice to do this by setting the view’s masksToBounds property to true?

Anyone know how to access this view? Doing cell.superview doesn’t work. cell.contentView.superview doesn’t work and cell.backgroundView.superview doesn’t work.

Anyone have any ideas?


There is no section view. A cell’s superview is the UITableView itself.

The rounded corner drawing is done by UITableViewCell’s backgroundView, and backgroundView isn’t in imageView’s view hierarchy (contentView and backgroundView are siblings—their superview is the Cell itself), so unfortunately masksToBounds won’t work.

Leave a Comment