How to stop UITableView from clipping UITableViewCell contents in iOS 7 How to stop UITableView from clipping UITableViewCell contents in iOS 7 ios ios

How to stop UITableView from clipping UITableViewCell contents in iOS 7


It looks like the view hierarchy changed slightly in iOS 7 for table view cells.

You can try setting the clips to bounds on the contentView's superview:

[cell.contentView.superview setClipsToBounds:NO];

If you add the following to your sample code and run on ios7 vs ios6, you'll see there's an additional view between the cell view and content view:

[cell.contentView.superview setClipsToBounds:NO];NSLog(@"%@", cell.contentView.superview);NSLog(@"%@", cell.contentView.superview.superview);NSLog(@"%@", cell);if (self.view.clipsToBounds) {    NSLog(@"Master clips");} else {    NSLog(@"Master no clip");}


You may made chang in the tableview attributes inspector of Clip Subviews.

enter image description here